Skip to content

Commit a8e9367

Browse files
gkalpakAndrewKushnir
authored andcommitted
build(docs-infra): update project structure to cli@9 2/12 (fixture.debugElement.componentInstance) (angular#36015)
`fixture.debugElement.componentInstance` --> `fixture.componentInstance` PR Close angular#36015
1 parent 5fccb46 commit a8e9367

File tree

25 files changed

+46
-46
lines changed

25 files changed

+46
-46
lines changed

aio/content/examples/attribute-binding/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('app');
2020
}));
2121
it('should render title in a h1 tag', async(() => {

aio/content/examples/binding-syntax/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('app');
2020
}));
2121
it('should render title in a h1 tag', async(() => {

aio/content/examples/bootstrapping/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ describe('AppComponent', () => {
1313

1414
it('should create the app', async(() => {
1515
const fixture = TestBed.createComponent(AppComponent);
16-
const app = fixture.debugElement.componentInstance;
16+
const app = fixture.componentInstance;
1717
expect(app).toBeTruthy();
1818
}));
1919

2020
it(`should have as title 'app works!'`, async(() => {
2121
const fixture = TestBed.createComponent(AppComponent);
22-
const app = fixture.debugElement.componentInstance;
22+
const app = fixture.componentInstance;
2323
expect(app.title).toEqual('app works!');
2424
}));
2525

aio/content/examples/built-in-template-functions/src/app/app.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
});

aio/content/examples/event-binding/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'Featured product:'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('Featured product:');
2020
}));
2121
it('should render title in a p tag', async(() => {

aio/content/examples/feature-modules/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ describe('AppComponent', () => {
1313

1414
it('should create the app', async(() => {
1515
const fixture = TestBed.createComponent(AppComponent);
16-
const app = fixture.debugElement.componentInstance;
16+
const app = fixture.componentInstance;
1717
expect(app).toBeTruthy();
1818
}));
1919

2020
it(`should have as title 'app works!'`, async(() => {
2121
const fixture = TestBed.createComponent(AppComponent);
22-
const app = fixture.debugElement.componentInstance;
22+
const app = fixture.componentInstance;
2323
expect(app.title).toEqual('app works!');
2424
}));
2525

aio/content/examples/forms-overview/src/app/app.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('AppComponent', () => {
1616

1717
it('should create the app', async(() => {
1818
const fixture = TestBed.createComponent(AppComponent);
19-
const app = fixture.debugElement.componentInstance;
19+
const app = fixture.componentInstance;
2020

2121
expect(app).toBeTruthy();
2222
}));

aio/content/examples/inputs-outputs/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('app');
2020
}));
2121
it('should render title in a h1 tag', async(() => {

aio/content/examples/interpolation/src/app/app.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
});

aio/content/examples/lazy-loading-ngmodules/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ describe('AppComponent', () => {
1717

1818
it('should create the app', async(() => {
1919
const fixture = TestBed.createComponent(AppComponent);
20-
const app = fixture.debugElement.componentInstance;
20+
const app = fixture.componentInstance;
2121
expect(app).toBeTruthy();
2222
}));
2323

2424
it(`should have as title 'customer-app'`, async(() => {
2525
const fixture = TestBed.createComponent(AppComponent);
26-
const app = fixture.debugElement.componentInstance;
26+
const app = fixture.componentInstance;
2727
expect(app.title).toEqual('customer-app');
2828
}));
2929

aio/content/examples/ngmodules/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ describe('AppComponent', () => {
1313

1414
it('should create the app', async(() => {
1515
const fixture = TestBed.createComponent(AppComponent);
16-
const app = fixture.debugElement.componentInstance;
16+
const app = fixture.componentInstance;
1717
expect(app).toBeTruthy();
1818
}));
1919

2020
it(`should have as title 'app works!'`, async(() => {
2121
const fixture = TestBed.createComponent(AppComponent);
22-
const app = fixture.debugElement.componentInstance;
22+
const app = fixture.componentInstance;
2323
expect(app.title).toEqual('app works!');
2424
}));
2525

aio/content/examples/property-binding/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('app');
2020
}));
2121
it('should render title in a h1 tag', async(() => {

aio/content/examples/providers/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ describe('AppComponent', () => {
1313

1414
it('should create the app', async(() => {
1515
const fixture = TestBed.createComponent(AppComponent);
16-
const app = fixture.debugElement.componentInstance;
16+
const app = fixture.componentInstance;
1717
expect(app).toBeTruthy();
1818
}));
1919

2020
it(`should have as title 'app works!'`, async(() => {
2121
const fixture = TestBed.createComponent(AppComponent);
22-
const app = fixture.debugElement.componentInstance;
22+
const app = fixture.componentInstance;
2323
expect(app.title).toEqual('app works!');
2424
}));
2525

aio/content/examples/reactive-forms/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('app');
2020
}));
2121
it('should render title in a h1 tag', async(() => {

aio/content/examples/service-worker-getting-started/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('Service Workers');
2020
}));
2121
it('should render title in a h1 tag', async(() => {

aio/content/examples/template-expression-operators/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('app');
2020
}));
2121
it('should render title in a h1 tag', async(() => {

aio/content/examples/template-reference-variables/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('app');
2020
}));
2121
it('should render title in a h1 tag', async(() => {

aio/content/examples/testing/src/app/app-initial.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ describe('AppComponent (initial CLI version)', () => {
2121
}));
2222
it('should create the app', async(() => {
2323
const fixture = TestBed.createComponent(AppComponent);
24-
const app = fixture.debugElement.componentInstance;
24+
const app = fixture.componentInstance;
2525
expect(app).toBeTruthy();
2626
}));
2727
it(`should have as title 'app'`, async(() => {
2828
const fixture = TestBed.createComponent(AppComponent);
29-
const app = fixture.debugElement.componentInstance;
29+
const app = fixture.componentInstance;
3030
expect(app.title).toEqual('app');
3131
}));
3232
it('should render title in a h1 tag', async(() => {

aio/content/examples/testing/src/app/shared/canvas.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('CanvasComponent', () => {
2626

2727
it('should be able to generate blob data from canvas', fakeAsync(() => {
2828
const fixture = TestBed.createComponent(CanvasComponent);
29-
const canvasComp = fixture.debugElement.componentInstance;
29+
const canvasComp = fixture.componentInstance;
3030

3131
fixture.detectChanges();
3232
expect(canvasComp.blobSize).toBe(0);

aio/content/examples/toh-pt0/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ describe('AppComponent', () => {
1313

1414
it('should create the app', async(() => {
1515
const fixture = TestBed.createComponent(AppComponent);
16-
const app = fixture.debugElement.componentInstance;
16+
const app = fixture.componentInstance;
1717
expect(app).toBeTruthy();
1818
}));
1919

2020
it(`should have as title 'app'`, async(() => {
2121
const fixture = TestBed.createComponent(AppComponent);
22-
const app = fixture.debugElement.componentInstance;
22+
const app = fixture.componentInstance;
2323
expect(app.title).toEqual('app');
2424
}));
2525

aio/content/examples/two-way-binding/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ describe('AppComponent', () => {
1010
}));
1111
it('should create the app', async(() => {
1212
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
13+
const app = fixture.componentInstance;
1414
expect(app).toBeTruthy();
1515
}));
1616
it(`should have as title 'app'`, async(() => {
1717
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
18+
const app = fixture.componentInstance;
1919
expect(app.title).toEqual('app');
2020
}));
2121
it('should render title in a h1 tag', async(() => {

integration/cli-hello-world-ivy-compat/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ describe('AppComponent', () => {
1212

1313
it('should create the app', () => {
1414
const fixture = TestBed.createComponent(AppComponent);
15-
const app = fixture.debugElement.componentInstance;
15+
const app = fixture.componentInstance;
1616
expect(app).toBeTruthy();
1717
});
1818

1919
it(`should have as title 'cli-hello-world-ivy-compat'`, () => {
2020
const fixture = TestBed.createComponent(AppComponent);
21-
const app = fixture.debugElement.componentInstance;
21+
const app = fixture.componentInstance;
2222
expect(app.title).toEqual('cli-hello-world-ivy-compat');
2323
});
2424

integration/cli-hello-world-lazy-rollup/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ describe('AppComponent', () => {
1616

1717
it('should create the app', () => {
1818
const fixture = TestBed.createComponent(AppComponent);
19-
const app = fixture.debugElement.componentInstance;
19+
const app = fixture.componentInstance;
2020
expect(app).toBeTruthy();
2121
});
2222

2323
it(`should have as title 'cli-hello-world-lazy-rollup'`, () => {
2424
const fixture = TestBed.createComponent(AppComponent);
25-
const app = fixture.debugElement.componentInstance;
25+
const app = fixture.componentInstance;
2626
expect(app.title).toEqual('cli-hello-world-lazy-rollup');
2727
});
2828

integration/cli-hello-world-lazy/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ describe('AppComponent', () => {
1616

1717
it('should create the app', () => {
1818
const fixture = TestBed.createComponent(AppComponent);
19-
const app = fixture.debugElement.componentInstance;
19+
const app = fixture.componentInstance;
2020
expect(app).toBeTruthy();
2121
});
2222

2323
it(`should have as title 'cli-hello-world-lazy'`, () => {
2424
const fixture = TestBed.createComponent(AppComponent);
25-
const app = fixture.debugElement.componentInstance;
25+
const app = fixture.componentInstance;
2626
expect(app.title).toEqual('cli-hello-world-lazy');
2727
});
2828

integration/cli-hello-world/src/app/app.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ describe('AppComponent', () => {
1212

1313
it('should create the app', () => {
1414
const fixture = TestBed.createComponent(AppComponent);
15-
const app = fixture.debugElement.componentInstance;
15+
const app = fixture.componentInstance;
1616
expect(app).toBeTruthy();
1717
});
1818

1919
it(`should have as title 'cli-hello-world'`, () => {
2020
const fixture = TestBed.createComponent(AppComponent);
21-
const app = fixture.debugElement.componentInstance;
21+
const app = fixture.componentInstance;
2222
expect(app.title).toEqual('cli-hello-world');
2323
});
2424

0 commit comments

Comments
 (0)