From eadd9a07680d8ba34b1a6b2091d9439172e89c67 Mon Sep 17 00:00:00 2001 From: Bryce Gibson Date: Sat, 24 Dec 2016 09:36:24 +1100 Subject: [PATCH] Ensure the test checks the right thing. --- api/tests/test-router.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/tests/test-router.js b/api/tests/test-router.js index 66968a77..d70a7c23 100644 --- a/api/tests/test-router.js +++ b/api/tests/test-router.js @@ -66,7 +66,9 @@ o.spec("route", function() { }) o("default route doesn't break back button", function(done) { - $window.location.href = "http://google.com" + $window.location.href = "http://old.com" + $window.location.href = "http://new.com" + route(root, "/a", { "/a" : { view: function() { @@ -83,6 +85,7 @@ o.spec("route", function() { $window.history.back() o($window.location.pathname).equals("/") + o($window.location.hostname).equals("old.com") done() })