From 16ba8af4998da766dc5eb28aea7bded4b50e355e Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 22 Jan 2013 09:48:30 -0500 Subject: [PATCH] Fix tests for non-question hash --- test/spec/renderer/hash.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/spec/renderer/hash.js b/test/spec/renderer/hash.js index 44d3c64a2..9de281453 100644 --- a/test/spec/renderer/hash.js +++ b/test/spec/renderer/hash.js @@ -24,13 +24,13 @@ describe("hash", function () { }); it("sets hadHash if location.hash is present", function () { - location.hash = "?map=20.00/38.87952/-77.02405"; + location.hash = "map=20.00/38.87952/-77.02405"; hash.map(map); expect(hash.hadHash).to.be.true; }); it("centerZooms map to requested level", function () { - location.hash = "?map=20.00/38.87952/-77.02405"; + location.hash = "map=20.00/38.87952/-77.02405"; sinon.spy(map, 'centerZoom'); hash.map(map); expect(map.centerZoom).to.have.been.calledWith([-77.02405,38.87952], 20.0); @@ -67,7 +67,7 @@ describe("hash", function () { }); sinon.spy(map, 'centerZoom'); - location.hash = "#?map=20.00/38.87952/-77.02405"; + location.hash = "#map=20.00/38.87952/-77.02405"; }); }); @@ -75,7 +75,7 @@ describe("hash", function () { it("stores the current zoom and coordinates in location.hash", function () { sinon.stub(map, 'on').yields(); hash.map(map); - expect(location.hash).to.equal("#?map=0.00/0/0"); + expect(location.hash).to.equal("#map=0.00/0/0"); }); }); });