From fc325c49ec8c36639f259f41acf6626159480a52 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Tue, 17 Mar 2020 22:28:40 +0200 Subject: [PATCH] build(docs-infra): update project structure to cli@9 3/12 (`title in a h1 tag`) (#36015) Make test description less implementation specific. PR Close #36015 --- .../attribute-binding/src/app/app.component.spec.ts | 2 +- .../examples/binding-syntax/src/app/app.component.spec.ts | 2 +- .../examples/bootstrapping/src/app/app.component.spec.ts | 2 +- .../examples/feature-modules/src/app/app.component.spec.ts | 2 +- .../examples/forms-overview/src/app/app.component.spec.ts | 2 +- .../examples/inputs-outputs/src/app/app.component.spec.ts | 2 +- .../lazy-loading-ngmodules/src/app/app.component.spec.ts | 2 +- .../examples/ngmodules/src/app/app.component.spec.ts | 2 +- .../examples/property-binding/src/app/app.component.spec.ts | 2 +- .../examples/providers/src/app/app.component.spec.ts | 2 +- .../examples/reactive-forms/src/app/app.component.spec.ts | 2 +- .../src/app/app.component.spec.ts | 2 +- .../src/app/app.component.spec.ts | 2 +- .../src/app/app.component.spec.ts | 2 +- .../examples/testing/src/app/app-initial.component.spec.ts | 2 +- aio/content/examples/toh-pt0/src/app/app.component.spec.ts | 2 +- .../examples/two-way-binding/src/app/app.component.spec.ts | 2 +- .../cli-hello-world-ivy-i18n/src/app/app.component.spec.ts | 6 +++--- .../src/app/app.component.spec.ts | 4 ++-- integration/ivy-i18n/src/app/app.component.spec.ts | 6 +++--- .../ng_update_migrations/src/app/app.component.spec.ts | 6 +++--- 21 files changed, 28 insertions(+), 28 deletions(-) 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 bf10beb25e..1f327e6574 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 @@ -18,7 +18,7 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 bf10beb25e..1f327e6574 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 @@ -18,7 +18,7 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 e05c6ce3fa..0e3504562b 100644 --- a/aio/content/examples/bootstrapping/src/app/app.component.spec.ts +++ b/aio/content/examples/bootstrapping/src/app/app.component.spec.ts @@ -23,7 +23,7 @@ describe('AppComponent', () => { expect(app.title).toEqual('app works!'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 e05c6ce3fa..0e3504562b 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 @@ -23,7 +23,7 @@ describe('AppComponent', () => { expect(app.title).toEqual('app works!'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 bde3cb6b6d..489e490485 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 @@ -21,7 +21,7 @@ describe('AppComponent', () => { expect(app).toBeTruthy(); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); 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 bf10beb25e..1f327e6574 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 @@ -18,7 +18,7 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 e2fb275296..37a8e88df0 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 @@ -27,7 +27,7 @@ describe('AppComponent', () => { expect(app.title).toEqual('customer-app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 e05c6ce3fa..0e3504562b 100644 --- a/aio/content/examples/ngmodules/src/app/app.component.spec.ts +++ b/aio/content/examples/ngmodules/src/app/app.component.spec.ts @@ -23,7 +23,7 @@ describe('AppComponent', () => { expect(app.title).toEqual('app works!'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 bf10beb25e..1f327e6574 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 @@ -18,7 +18,7 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 e05c6ce3fa..0e3504562b 100644 --- a/aio/content/examples/providers/src/app/app.component.spec.ts +++ b/aio/content/examples/providers/src/app/app.component.spec.ts @@ -23,7 +23,7 @@ describe('AppComponent', () => { expect(app.title).toEqual('app works!'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 524a63233c..355989efcd 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 @@ -18,7 +18,7 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 7b93fdb972..b59df0cbc1 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 @@ -18,7 +18,7 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app.title).toEqual('Service Workers'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 bf10beb25e..1f327e6574 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 @@ -18,7 +18,7 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 bf10beb25e..1f327e6574 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 @@ -18,7 +18,7 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 ff22f8515f..1cd11c37f4 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 @@ -29,7 +29,7 @@ describe('AppComponent (initial CLI version)', () => { const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.nativeElement; 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 b6012f0d19..8ea1e2a3e1 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 @@ -23,7 +23,7 @@ describe('AppComponent', () => { expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; 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 bf10beb25e..1f327e6574 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 @@ -18,7 +18,7 @@ describe('AppComponent', () => { const app = fixture.componentInstance; expect(app.title).toEqual('app'); })); - it('should render title in a h1 tag', async(() => { + it('should render title', async(() => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; diff --git a/integration/cli-hello-world-ivy-i18n/src/app/app.component.spec.ts b/integration/cli-hello-world-ivy-i18n/src/app/app.component.spec.ts index 6b6680b995..610da0d2f3 100644 --- a/integration/cli-hello-world-ivy-i18n/src/app/app.component.spec.ts +++ b/integration/cli-hello-world-ivy-i18n/src/app/app.component.spec.ts @@ -12,17 +12,17 @@ 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-i18n'`, () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('cli-hello-world-ivy-i18n'); }); - it('should render title in a h1 tag', () => { + it('should render title', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; diff --git a/integration/cli-hello-world-ivy-minimal/src/app/app.component.spec.ts b/integration/cli-hello-world-ivy-minimal/src/app/app.component.spec.ts index 605dc20db3..5f6eb96611 100644 --- a/integration/cli-hello-world-ivy-minimal/src/app/app.component.spec.ts +++ b/integration/cli-hello-world-ivy-minimal/src/app/app.component.spec.ts @@ -12,11 +12,11 @@ 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 render title in a h1 tag', () => { + it('should render title', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; diff --git a/integration/ivy-i18n/src/app/app.component.spec.ts b/integration/ivy-i18n/src/app/app.component.spec.ts index 4121e75e58..58172a9a81 100644 --- a/integration/ivy-i18n/src/app/app.component.spec.ts +++ b/integration/ivy-i18n/src/app/app.component.spec.ts @@ -12,17 +12,17 @@ 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'); }); - it('should render title in a h1 tag', () => { + it('should render title', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; diff --git a/integration/ng_update_migrations/src/app/app.component.spec.ts b/integration/ng_update_migrations/src/app/app.component.spec.ts index 7c5c24964e..428143af15 100644 --- a/integration/ng_update_migrations/src/app/app.component.spec.ts +++ b/integration/ng_update_migrations/src/app/app.component.spec.ts @@ -12,17 +12,17 @@ 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 'ng-update-migrations'`, () => { const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; + const app = fixture.componentInstance; expect(app.title).toEqual('ng-update-migrations'); }); - it('should render title in a h1 tag', () => { + it('should render title', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement;