Skip to content

Commit

Permalink
test(unit): update spec of app spa
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Oct 22, 2024
1 parent 5e2e27f commit f7dce5c
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
Expand Up @@ -21,7 +21,7 @@ describe('AppComponent', () => {
it('should render the title', () => {
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain('VLibras');
expect(compiled.querySelector('h1')?.textContent).toContain('angular-vlibras');
});

it('should render the <angular-VLibras> component', () => {
Expand All @@ -46,13 +46,4 @@ describe('AppComponent', () => {
expect(mainDiv).toBeTruthy();
expect(contentDiv).toBeTruthy();
});

it('should have a left-side div with the SVG logo', () => {
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
const leftSideDiv = compiled.querySelector('div.left-side');
expect(leftSideDiv).toBeTruthy();
const svgElement = leftSideDiv?.querySelector('svg.angular-logo');
expect(svgElement).toBeTruthy();
});
});

0 comments on commit f7dce5c

Please sign in to comment.