fix/ Fix npm run lint
This commit is contained in:
@@ -24,13 +24,13 @@ describe('HomeComponent', () => {
|
||||
});
|
||||
|
||||
it(`should have as title 'App works !'`, async(() => {
|
||||
const fixture = TestBed.createComponent(HomeComponent);
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
const app = fixture.debugElement.componentInstance;
|
||||
expect(app.title).toEqual('App works !');
|
||||
}));
|
||||
|
||||
it('should render title in a h1 tag', async(() => {
|
||||
const fixture = TestBed.createComponent(HomeComponent);
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
fixture.detectChanges();
|
||||
const compiled = fixture.debugElement.nativeElement;
|
||||
expect(compiled.querySelector('h1').textContent).toContain('App works !');
|
||||
|
||||
Reference in New Issue
Block a user