fix(router): fix RouterLinkActive to handle the case when the link has extra paths

This commit is contained in:
vsavkin
2016-06-29 16:07:35 -07:00
parent 5781b96490
commit a3b90411aa
2 changed files with 9 additions and 3 deletions

View File

@ -62,6 +62,12 @@ describe('UrlTree', () => {
const t2 = serializer.parse('/one/(two//right:four)');
expect(containsTree(t1, t2, false)).toBe(false);
});
it('should return false when containee has extra paths', () => {
const t1 = serializer.parse('/one');
const t2 = serializer.parse('/one/two');
expect(containsTree(t1, t2, false)).toBe(false);
});
});
});
});