tests: undefined until a route has been matched

This commit is contained in:
Pat Cavit 2017-01-11 14:25:19 -08:00
parent 834dd02610
commit 2cdd8a96d1

View file

@ -1208,6 +1208,9 @@ o.spec("route", function() {
}
})
o(route.params("id")).equals(undefined);
o(route.params()).deepEquals(undefined);
callAsync(function() {
o(route.params("id")).equals("1")
o(route.params()).deepEquals({id:"1"})