Skip to content

Commit aea4bfa

Browse files
committed
fix for path.get test
1 parent 1eed03c commit aea4bfa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/navigation/navigation_core.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959

6060

6161
test( "path.get method is working properly", function(){
62-
same($.mobile.path.get(), window.location.hash, "get method returns location.hash");
62+
window.location.hash = "foo"
63+
same($.mobile.path.get(), "foo", "get method returns location.hash minus hash character");
6364
same($.mobile.path.get( "#foo/bar/baz.html" ), "foo/bar/", "get method with hash arg returns path with no filename or hash prefix");
6465
same($.mobile.path.get( "#foo/bar/baz.html/" ), "foo/bar/baz.html/", "last segment of hash is retained if followed by a trailing slash");
6566
});
@@ -203,4 +204,4 @@
203204
}, 500);
204205
});
205206

206-
})(jQuery);
207+
})(jQuery);

0 commit comments

Comments
 (0)