build(docs-infra): update project structure to cli@9 2/12 (fixture.debugElement.componentInstance) (#36015)

`fixture.debugElement.componentInstance` --> `fixture.componentInstance`

PR Close #36015
This commit is contained in:
George Kalpakas
2020-03-17 22:28:38 +02:00
committed by Andrew Kushnir
parent 5fccb46f6f
commit a8e936791b
25 changed files with 46 additions and 46 deletions

View File

@ -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(() => {

View File

@ -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);