diff --git a/packages/core/test/acceptance/view_ref_spec.ts b/packages/core/test/acceptance/view_ref_spec.ts index 975d38e6a2..fcb1cf28f6 100644 --- a/packages/core/test/acceptance/view_ref_spec.ts +++ b/packages/core/test/acceptance/view_ref_spec.ts @@ -47,10 +47,10 @@ describe('ViewRef', () => { const appComponent = fixture.componentInstance; appComponent.create(); fixture.detectChanges(); - expect(document.body.querySelector('dynamic-cpt')).not.toBeUndefined(); + expect(document.body.querySelector('dynamic-cpt')).not.toBeFalsy(); appComponent.destroy(); fixture.detectChanges(); - expect(document.body.querySelector('dynamic-cpt')).toBeUndefined(); + expect(document.body.querySelector('dynamic-cpt')).toBeFalsy(); }); });