Skip to content

Commit 859e2cd

Browse files
committed
Clean up unit tests on webapp's app.component
1 parent e897640 commit 859e2cd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

webapp/src/app/app.component.spec.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {RouterModule} from "@angular/router";
44
import {HttpClientTestingModule} from "@angular/common/http/testing";
55

66
describe('AppComponent', () => {
7-
let component: AppComponent;
7+
let app: AppComponent;
88
let fixture: ComponentFixture<AppComponent>;
99

1010
beforeEach(async () => {
@@ -13,20 +13,16 @@ describe('AppComponent', () => {
1313
}).compileComponents();
1414

1515
fixture = TestBed.createComponent(AppComponent);
16-
component = fixture.componentInstance;
16+
app = fixture.componentInstance;
1717
fixture.detectChanges();
1818
});
1919

2020
describe('component instance', () => {
2121
it('should create the app', () => {
22-
const fixture = TestBed.createComponent(AppComponent);
23-
const app = fixture.componentInstance;
2422
expect(app).toBeTruthy();
2523
});
2624

2725
it(`should have TCR for title`, () => {
28-
const fixture = TestBed.createComponent(AppComponent);
29-
const app = fixture.componentInstance;
3026
expect(app.title).toEqual('TCR');
3127
});
3228
});

0 commit comments

Comments
 (0)