Skip to content

Commit

Permalink
test: fix app component test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewarosario committed Aug 3, 2023
1 parent 6e2d927 commit 3238484
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
import { NxWelcomeComponent } from './nx-welcome.component';
import { RouterTestingModule } from '@angular/router/testing';

describe('AppComponent', () => {
beforeEach(async () => {
Expand All @@ -11,15 +11,6 @@ describe('AppComponent', () => {
}).compileComponents();
});

it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain(
'Welcome my-app'
);
});

it(`should have as title 'my-app'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
Expand Down

0 comments on commit 3238484

Please sign in to comment.