Use tobe instead of testing the result of an equality

This commit is contained in:
Tom MacWright 2013-02-19 14:21:06 -05:00
parent 8e176f48aa
commit a324759268
2 changed files with 8 additions and 8 deletions

View File

@ -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 @@
});
});
});
});
});

View File

@ -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 () {
});
});
});
});
});