Ensure the test checks the right thing.

This commit is contained in:
Bryce Gibson 2016-12-24 09:36:24 +11:00
parent d42d728681
commit eadd9a0768

View file

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