parent
63d18064fe
commit
014841dfef
|
@ -47,10 +47,10 @@ describe('ViewRef', () => {
|
||||||
const appComponent = fixture.componentInstance;
|
const appComponent = fixture.componentInstance;
|
||||||
appComponent.create();
|
appComponent.create();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
expect(document.body.querySelector('dynamic-cpt')).not.toBeUndefined();
|
expect(document.body.querySelector('dynamic-cpt')).not.toBeFalsy();
|
||||||
|
|
||||||
appComponent.destroy();
|
appComponent.destroy();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
expect(document.body.querySelector('dynamic-cpt')).toBeUndefined();
|
expect(document.body.querySelector('dynamic-cpt')).toBeFalsy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue