test(router): correct a wrong test (FW-766) (#27511)

PR Close #27511
This commit is contained in:
Marc Laval 2018-12-06 15:28:39 +01:00 committed by Igor Minar
parent 913563a41d
commit f013c57186
1 changed files with 37 additions and 35 deletions

View File

@ -2634,8 +2634,7 @@ describe('Integration', () => {
expect(canceledStatus).toEqual(false);
})));
fixmeIvy('FW-766: One router test is wrong')
.it('works with componentless routes',
it('works with componentless routes',
fakeAsync(inject([Router, Location], (router: Router, location: Location) => {
const fixture = createRoot(router, RootCmp);
@ -2672,7 +2671,10 @@ describe('Integration', () => {
expect(log.map((a: any) => a.path)).toEqual([
'simple', 'child', 'parent', 'grandparent'
]);
expect(log.map((a: any) => a.component)).toEqual([child, null, null, null]);
expect(log[0].component instanceof SimpleCmp).toBeTruthy();
[1, 2, 3].forEach(i => expect(log[i].component).toBeNull());
expect(child instanceof SimpleCmp).toBeTruthy();
expect(child).not.toBe(log[0].component);
})));
it('works with aux routes',