Fix grid resize test to check for object identity

This commit is contained in:
Unknown 2018-10-21 11:07:46 +02:00
parent d79aceeebf
commit ae26496730

View file

@ -24,7 +24,7 @@ void main() {
test("creates a new underlying grid on resizing", () { test("creates a new underlying grid on resizing", () {
var oldMap = sut.map; var oldMap = sut.map;
sut.gridSize = Point(10, 10); sut.gridSize = Point(10, 10);
expect(sut.map, isNot(oldMap)); expect(sut.map, isNot(same(oldMap)));
}); });
}); });
group("reset", () { group("reset", () {