diff --git a/aio/content/examples/attribute-binding/src/app/app.component.spec.ts b/aio/content/examples/attribute-binding/src/app/app.component.spec.ts index bcbdf36b3e..bf10beb25e 100644 --- a/aio/content/examples/attribute-binding/src/app/app.component.spec.ts +++ b/aio/content/examples/attribute-binding/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); it('should render title in a h1 tag', async(() => { diff --git a/aio/content/examples/binding-syntax/src/app/app.component.spec.ts b/aio/content/examples/binding-syntax/src/app/app.component.spec.ts index bcbdf36b3e..bf10beb25e 100644 --- a/aio/content/examples/binding-syntax/src/app/app.component.spec.ts +++ b/aio/content/examples/binding-syntax/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); it('should render title in a h1 tag', async(() => { diff --git a/aio/content/examples/bootstrapping/src/app/app.component.spec.ts b/aio/content/examples/bootstrapping/src/app/app.component.spec.ts index 13c632d676..e05c6ce3fa 100644 --- a/aio/content/examples/bootstrapping/src/app/app.component.spec.ts +++ b/aio/content/examples/bootstrapping/src/app/app.component.spec.ts @@ -13,13 +13,13 @@ describe('AppComponent', () => { it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app works!'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app works!'); })); diff --git a/aio/content/examples/built-in-template-functions/src/app/app.component.spec.ts b/aio/content/examples/built-in-template-functions/src/app/app.component.spec.ts index 31b39079ce..f28fb061be 100644 --- a/aio/content/examples/built-in-template-functions/src/app/app.component.spec.ts +++ b/aio/content/examples/built-in-template-functions/src/app/app.component.spec.ts @@ -10,7 +10,7 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); }); diff --git a/aio/content/examples/event-binding/src/app/app.component.spec.ts b/aio/content/examples/event-binding/src/app/app.component.spec.ts index 852c902d87..70abd5114b 100644 --- a/aio/content/examples/event-binding/src/app/app.component.spec.ts +++ b/aio/content/examples/event-binding/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'Featured product:'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('Featured product:'); })); it('should render title in a p tag', async(() => { diff --git a/aio/content/examples/feature-modules/src/app/app.component.spec.ts b/aio/content/examples/feature-modules/src/app/app.component.spec.ts index 13c632d676..e05c6ce3fa 100644 --- a/aio/content/examples/feature-modules/src/app/app.component.spec.ts +++ b/aio/content/examples/feature-modules/src/app/app.component.spec.ts @@ -13,13 +13,13 @@ describe('AppComponent', () => { it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app works!'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app works!'); })); diff --git a/aio/content/examples/forms-overview/src/app/app.component.spec.ts b/aio/content/examples/forms-overview/src/app/app.component.spec.ts index 1ab69b0184..bde3cb6b6d 100644 --- a/aio/content/examples/forms-overview/src/app/app.component.spec.ts +++ b/aio/content/examples/forms-overview/src/app/app.component.spec.ts @@ -16,7 +16,7 @@ describe('AppComponent', () => { it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); diff --git a/aio/content/examples/inputs-outputs/src/app/app.component.spec.ts b/aio/content/examples/inputs-outputs/src/app/app.component.spec.ts index bcbdf36b3e..bf10beb25e 100644 --- a/aio/content/examples/inputs-outputs/src/app/app.component.spec.ts +++ b/aio/content/examples/inputs-outputs/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); it('should render title in a h1 tag', async(() => { diff --git a/aio/content/examples/interpolation/src/app/app.component.spec.ts b/aio/content/examples/interpolation/src/app/app.component.spec.ts index 31b39079ce..f28fb061be 100644 --- a/aio/content/examples/interpolation/src/app/app.component.spec.ts +++ b/aio/content/examples/interpolation/src/app/app.component.spec.ts @@ -10,7 +10,7 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); }); diff --git a/aio/content/examples/lazy-loading-ngmodules/src/app/app.component.spec.ts b/aio/content/examples/lazy-loading-ngmodules/src/app/app.component.spec.ts index f1121210b4..e2fb275296 100644 --- a/aio/content/examples/lazy-loading-ngmodules/src/app/app.component.spec.ts +++ b/aio/content/examples/lazy-loading-ngmodules/src/app/app.component.spec.ts @@ -17,13 +17,13 @@ describe('AppComponent', () => { it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'customer-app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('customer-app'); })); diff --git a/aio/content/examples/ngmodules/src/app/app.component.spec.ts b/aio/content/examples/ngmodules/src/app/app.component.spec.ts index 13c632d676..e05c6ce3fa 100644 --- a/aio/content/examples/ngmodules/src/app/app.component.spec.ts +++ b/aio/content/examples/ngmodules/src/app/app.component.spec.ts @@ -13,13 +13,13 @@ describe('AppComponent', () => { it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app works!'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app works!'); })); diff --git a/aio/content/examples/property-binding/src/app/app.component.spec.ts b/aio/content/examples/property-binding/src/app/app.component.spec.ts index bcbdf36b3e..bf10beb25e 100644 --- a/aio/content/examples/property-binding/src/app/app.component.spec.ts +++ b/aio/content/examples/property-binding/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); it('should render title in a h1 tag', async(() => { diff --git a/aio/content/examples/providers/src/app/app.component.spec.ts b/aio/content/examples/providers/src/app/app.component.spec.ts index 13c632d676..e05c6ce3fa 100644 --- a/aio/content/examples/providers/src/app/app.component.spec.ts +++ b/aio/content/examples/providers/src/app/app.component.spec.ts @@ -13,13 +13,13 @@ describe('AppComponent', () => { it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app works!'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app works!'); })); diff --git a/aio/content/examples/reactive-forms/src/app/app.component.spec.ts b/aio/content/examples/reactive-forms/src/app/app.component.spec.ts index fff9fa666d..524a63233c 100644 --- a/aio/content/examples/reactive-forms/src/app/app.component.spec.ts +++ b/aio/content/examples/reactive-forms/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); it('should render title in a h1 tag', async(() => { diff --git a/aio/content/examples/service-worker-getting-started/src/app/app.component.spec.ts b/aio/content/examples/service-worker-getting-started/src/app/app.component.spec.ts index a136c59bfb..7b93fdb972 100755 --- a/aio/content/examples/service-worker-getting-started/src/app/app.component.spec.ts +++ b/aio/content/examples/service-worker-getting-started/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('Service Workers'); })); it('should render title in a h1 tag', async(() => { diff --git a/aio/content/examples/template-expression-operators/src/app/app.component.spec.ts b/aio/content/examples/template-expression-operators/src/app/app.component.spec.ts index bcbdf36b3e..bf10beb25e 100644 --- a/aio/content/examples/template-expression-operators/src/app/app.component.spec.ts +++ b/aio/content/examples/template-expression-operators/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); it('should render title in a h1 tag', async(() => { diff --git a/aio/content/examples/template-reference-variables/src/app/app.component.spec.ts b/aio/content/examples/template-reference-variables/src/app/app.component.spec.ts index bcbdf36b3e..bf10beb25e 100644 --- a/aio/content/examples/template-reference-variables/src/app/app.component.spec.ts +++ b/aio/content/examples/template-reference-variables/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); it('should render title in a h1 tag', async(() => { diff --git a/aio/content/examples/testing/src/app/app-initial.component.spec.ts b/aio/content/examples/testing/src/app/app-initial.component.spec.ts index 3e3e6a847c..ff22f8515f 100644 --- a/aio/content/examples/testing/src/app/app-initial.component.spec.ts +++ b/aio/content/examples/testing/src/app/app-initial.component.spec.ts @@ -21,12 +21,12 @@ describe('AppComponent (initial CLI version)', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); it('should render title in a h1 tag', async(() => { diff --git a/aio/content/examples/testing/src/app/shared/canvas.component.spec.ts b/aio/content/examples/testing/src/app/shared/canvas.component.spec.ts index bf5e5202c8..da52ef8fcd 100644 --- a/aio/content/examples/testing/src/app/shared/canvas.component.spec.ts +++ b/aio/content/examples/testing/src/app/shared/canvas.component.spec.ts @@ -26,7 +26,7 @@ describe('CanvasComponent', () => { it('should be able to generate blob data from canvas', fakeAsync(() => { const fixture = TestBed.createComponent(CanvasComponent); - const canvasComp = fixture.debugElement.componentInstance; + const canvasComp = fixture.componentInstance; fixture.detectChanges(); expect(canvasComp.blobSize).toBe(0); diff --git a/aio/content/examples/toh-pt0/src/app/app.component.spec.ts b/aio/content/examples/toh-pt0/src/app/app.component.spec.ts index 9510495a2d..b6012f0d19 100644 --- a/aio/content/examples/toh-pt0/src/app/app.component.spec.ts +++ b/aio/content/examples/toh-pt0/src/app/app.component.spec.ts @@ -13,13 +13,13 @@ describe('AppComponent', () => { it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); diff --git a/aio/content/examples/two-way-binding/src/app/app.component.spec.ts b/aio/content/examples/two-way-binding/src/app/app.component.spec.ts index bcbdf36b3e..bf10beb25e 100644 --- a/aio/content/examples/two-way-binding/src/app/app.component.spec.ts +++ b/aio/content/examples/two-way-binding/src/app/app.component.spec.ts @@ -10,12 +10,12 @@ describe('AppComponent', () => { })); it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); })); it(`should have as title 'app'`, async(() => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); it('should render title in a h1 tag', async(() => { diff --git a/integration/cli-hello-world-ivy-compat/src/app/app.component.spec.ts b/integration/cli-hello-world-ivy-compat/src/app/app.component.spec.ts index 32e18d7824..249cf07d32 100644 --- a/integration/cli-hello-world-ivy-compat/src/app/app.component.spec.ts +++ b/integration/cli-hello-world-ivy-compat/src/app/app.component.spec.ts @@ -12,13 +12,13 @@ describe('AppComponent', () => { it('should create the app', () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); }); it(`should have as title 'cli-hello-world-ivy-compat'`, () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('cli-hello-world-ivy-compat'); }); diff --git a/integration/cli-hello-world-lazy-rollup/src/app/app.component.spec.ts b/integration/cli-hello-world-lazy-rollup/src/app/app.component.spec.ts index c340a0d017..deeee48471 100644 --- a/integration/cli-hello-world-lazy-rollup/src/app/app.component.spec.ts +++ b/integration/cli-hello-world-lazy-rollup/src/app/app.component.spec.ts @@ -16,13 +16,13 @@ describe('AppComponent', () => { it('should create the app', () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); }); it(`should have as title 'cli-hello-world-lazy-rollup'`, () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('cli-hello-world-lazy-rollup'); }); diff --git a/integration/cli-hello-world-lazy/src/app/app.component.spec.ts b/integration/cli-hello-world-lazy/src/app/app.component.spec.ts index 1a75bc5649..6da00987a8 100644 --- a/integration/cli-hello-world-lazy/src/app/app.component.spec.ts +++ b/integration/cli-hello-world-lazy/src/app/app.component.spec.ts @@ -16,13 +16,13 @@ describe('AppComponent', () => { it('should create the app', () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); }); it(`should have as title 'cli-hello-world-lazy'`, () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('cli-hello-world-lazy'); }); diff --git a/integration/cli-hello-world/src/app/app.component.spec.ts b/integration/cli-hello-world/src/app/app.component.spec.ts index c7bbdd4f4b..22488f4a4c 100644 --- a/integration/cli-hello-world/src/app/app.component.spec.ts +++ b/integration/cli-hello-world/src/app/app.component.spec.ts @@ -12,13 +12,13 @@ describe('AppComponent', () => { it('should create the app', () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app).toBeTruthy(); }); it(`should have as title 'cli-hello-world'`, () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('cli-hello-world'); });