test(router): add testing code for querystring serialization
This commit is contained in:

committed by
Brian Ford

parent
ea661fa10f
commit
1bc35208df
@ -105,5 +105,13 @@ export function main() {
|
||||
location.back();
|
||||
assertUrl('/ready');
|
||||
});
|
||||
|
||||
it('should incorporate the provided query values into the location change', () => {
|
||||
var locationStrategy = new MockLocationStrategy();
|
||||
var location = new Location(locationStrategy);
|
||||
|
||||
location.go('/home', "key=value");
|
||||
expect(location.path()).toEqual("/home?key=value");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user