test(ivy): fix failing view ref test (#29178)

PR Close #29178
This commit is contained in:
Kara Erickson 2019-03-07 18:46:24 -08:00
parent 63d18064fe
commit 014841dfef
1 changed files with 2 additions and 2 deletions

View File

@ -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();
});
});