diff --git a/packages/core/test/acceptance/exports_spec.ts b/packages/core/test/acceptance/exports_spec.ts index 63d3a0a485..4d6feb609c 100644 --- a/packages/core/test/acceptance/exports_spec.ts +++ b/packages/core/test/acceptance/exports_spec.ts @@ -43,19 +43,20 @@ describe('exports', () => { describe('input changes in hooks', () => { it('should support forward reference', () => { const fixture = initWithTemplate( - AppComp, '
{{ myDir.name }}'); + AppComp, ' {{ myDir.name }}'); fixture.detectChanges(); expect(fixture.nativeElement.innerHTML) - .toEqual(' Drew!?@'); + .toEqual(' Drew!?@'); }); modifiedInIvy('Supporting input changes in hooks is limited in Ivy') .it('should support backward reference', () => { const fixture = initWithTemplate( - AppComp, '{{ myDir.name }} '); + AppComp, + '{{ myDir.name }} '); fixture.detectChanges(); expect(fixture.nativeElement.innerHTML) - .toEqual('Drew!?@ '); + .toEqual('Drew!?@ '); }); onlyInIvy('Supporting input changes in hooks is limited in Ivy') @@ -63,7 +64,7 @@ describe('exports', () => { expect(() => { const fixture = initWithTemplate( AppComp, - '{{ myDir.name }} '); + '{{ myDir.name }} '); fixture.detectChanges(); }) .toThrowError( @@ -74,11 +75,11 @@ describe('exports', () => { .it('should support reference on the same node', () => { const fixture = initWithTemplate( AppComp, - ''); + ''); fixture.detectChanges(); expect(fixture.nativeElement.innerHTML) .toEqual( - ''); + ''); }); onlyInIvy('Supporting input changes in hooks is limited in Ivy') @@ -86,7 +87,7 @@ describe('exports', () => { expect(() => { const fixture = initWithTemplate( AppComp, - ''); + ''); fixture.detectChanges(); }) .toThrowError( @@ -95,10 +96,10 @@ describe('exports', () => { it('should support input referenced by host binding on that directive', () => { const fixture = - initWithTemplate(AppComp, ''); + initWithTemplate(AppComp, ''); fixture.detectChanges(); expect(fixture.nativeElement.innerHTML) - .toEqual(''); + .toEqual(''); }); }); @@ -162,7 +163,7 @@ class DirWithCompInput { @Input('dirWithInput') comp: ComponentToReference|null = null; } -@Directive({selector: '[dirOnChange]', exportAs: 'dirOnChange', host: {'[title]': 'name'}}) +@Directive({selector: '[dir-on-change]', exportAs: 'dirOnChange', host: {'[title]': 'name'}}) class DirToReferenceWithPreOrderHooks implements OnInit, OnChanges, DoCheck { @Input() in : any = null; name = 'Drew';