fix(router): redirect should not add unnecessary brackets

This commit is contained in:
vsavkin
2016-06-29 15:26:04 -07:00
parent f208ee0d57
commit 5781b96490
4 changed files with 25 additions and 7 deletions

View File

@ -187,7 +187,7 @@ describe('applyRedirects', () => {
},
{path: '', redirectTo: 'a'}
],
'', (t: UrlTree) => { compareTrees(t, tree('a/(b)')); });
'', (t: UrlTree) => { compareTrees(t, tree('a/b')); });
});
it('redirect to an empty path should work', () => {