fix hash test

This commit is contained in:
Ansis Brammanis
2013-03-05 11:18:36 -05:00
parent f452b5b975
commit b8f3292c2b

View File

@@ -40,10 +40,11 @@ describe("iD.behavior.Hash", function () {
it("centerZooms map at requested coordinates on hash change", function (done) {
hash();
d3.select(window).one('hashchange', function () {
d3.select(window).on('hashchange', function () {
expect(context.map().center()[0]).to.be.closeTo(-77.02405, 0.1);
expect(context.map().center()[1]).to.be.closeTo(38.87952, 0.1);
expect(context.map().zoom()).to.equal(20.0);
d3.select(window).on('hashchange', null);
done();
});