From 014841dfefd0186ed3da197593b0e2599c32c182 Mon Sep 17 00:00:00 2001 From: Kara Erickson Date: Thu, 7 Mar 2019 18:46:24 -0800 Subject: [PATCH] test(ivy): fix failing view ref test (#29178) PR Close #29178 --- packages/core/test/acceptance/view_ref_spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }); });