tests: undefined until a route has been matched
This commit is contained in:
parent
834dd02610
commit
2cdd8a96d1
1 changed files with 3 additions and 0 deletions
|
|
@ -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"})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue