router test tweak to placate oldIEs

This commit is contained in:
Jeremy Ashkenas
2012-12-13 18:37:35 -05:00
parent 328e721896
commit 3ccde89a97

View File

@@ -207,7 +207,7 @@ $(document).ready(function() {
test("routes (optional)", 2, function() {
location.replace('http://example.com#optional');
Backbone.history.checkUrl();
ok(router.arg == null);
ok(!router.arg);
location.replace('http://example.com#optional/thing');
Backbone.history.checkUrl();
equal(router.arg, 'thing');