Use tobe instead of testing the result of an equality
This commit is contained in:
parent
8e176f48aa
commit
a324759268
@ -16,14 +16,14 @@
|
||||
|
||||
var wasClicked = 0;
|
||||
fg2.on('click', function(e) {
|
||||
expect(e.layer == marker).toBe(true);
|
||||
expect(e.target === fg2).toBe(true);
|
||||
expect(e.layer).toBe(marker);
|
||||
expect(e.target).toBe(fg2);
|
||||
wasClicked |= 1;
|
||||
});
|
||||
|
||||
fg1.on('click', function (e) {
|
||||
expect(e.layer == marker).toBe(true);
|
||||
expect(e.target === fg1).toBe(true);
|
||||
expect(e.layer).toBe(marker);
|
||||
expect(e.target).toBe(fg1);
|
||||
wasClicked |= 2;
|
||||
});
|
||||
|
||||
@ -33,4 +33,4 @@
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -15,8 +15,8 @@ describe('TileLayer', function () {
|
||||
maxZoom: maxZoom,
|
||||
minZoom: minZoom
|
||||
}).addTo(map);
|
||||
expect(map.getMaxZoom() === maxZoom).toBeTruthy();
|
||||
expect(map.getMinZoom() === minZoom).toBeTruthy();
|
||||
expect(map.getMaxZoom()).toBe(maxZoom);
|
||||
expect(map.getMinZoom()).toBe(minZoom);
|
||||
});
|
||||
});
|
||||
describe("when a tilelayer is added to a map that already has a tilelayer", function () {
|
||||
@ -72,4 +72,4 @@ describe('TileLayer', function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user