From a324759268b70df64d9e48e0041f657fe4cc8352 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 19 Feb 2013 14:21:06 -0500 Subject: [PATCH] Use tobe instead of testing the result of an equality --- spec/suites/layer/FeatureGroupSpec.js | 10 +++++----- spec/suites/layer/TileLayerSpec.js | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/suites/layer/FeatureGroupSpec.js b/spec/suites/layer/FeatureGroupSpec.js index fc74d137..1b7e4892 100644 --- a/spec/suites/layer/FeatureGroupSpec.js +++ b/spec/suites/layer/FeatureGroupSpec.js @@ -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 @@ }); }); }); -}); \ No newline at end of file +}); diff --git a/spec/suites/layer/TileLayerSpec.js b/spec/suites/layer/TileLayerSpec.js index fddfffc0..64c17e71 100644 --- a/spec/suites/layer/TileLayerSpec.js +++ b/spec/suites/layer/TileLayerSpec.js @@ -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 () { }); }); }); -}); \ No newline at end of file +});