parent
913563a41d
commit
f013c57186
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue