diff --git a/packages/core/test/acceptance/exports_spec.ts b/packages/core/test/acceptance/exports_spec.ts index 4d6feb609c..690f47194b 100644 --- a/packages/core/test/acceptance/exports_spec.ts +++ b/packages/core/test/acceptance/exports_spec.ts @@ -45,8 +45,8 @@ describe('exports', () => { const fixture = initWithTemplate( AppComp, '
{{ myDir.name }}'); fixture.detectChanges(); - expect(fixture.nativeElement.innerHTML) - .toEqual('
Drew!?@'); + expect(fixture.nativeElement.firstChild.title).toBe('Drew!?@'); // div element + expect(fixture.nativeElement.lastChild.textContent).toContain('Drew!?@'); // text node }); modifiedInIvy('Supporting input changes in hooks is limited in Ivy') @@ -55,8 +55,8 @@ describe('exports', () => { AppComp, '{{ myDir.name }}
'); fixture.detectChanges(); - expect(fixture.nativeElement.innerHTML) - .toEqual('Drew!?@
'); + expect(fixture.nativeElement.firstChild.textContent).toContain('Drew!?@'); // text node + expect(fixture.nativeElement.lastChild.title).toBe('Drew!?@'); // div element }); onlyInIvy('Supporting input changes in hooks is limited in Ivy') @@ -77,9 +77,8 @@ describe('exports', () => { AppComp, '
'); fixture.detectChanges(); - expect(fixture.nativeElement.innerHTML) - .toEqual( - '
'); + expect(fixture.nativeElement.firstChild.id).toBe('Drew!?@'); + expect(fixture.nativeElement.firstChild.title).toBe('Drew!?@'); }); onlyInIvy('Supporting input changes in hooks is limited in Ivy') @@ -98,8 +97,7 @@ describe('exports', () => { const fixture = initWithTemplate(AppComp, '
'); fixture.detectChanges(); - expect(fixture.nativeElement.innerHTML) - .toEqual('
'); + expect(fixture.nativeElement.firstChild.title).toBe('Drew!?@'); }); });