test(router): add testing code for querystring serialization

This commit is contained in:
Matias Niemelä
2015-10-07 16:56:35 -07:00
committed by Brian Ford
parent ea661fa10f
commit 1bc35208df
2 changed files with 31 additions and 11 deletions

View File

@ -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");
});
});
}