Skip to content

Commit 0e46a28

Browse files
Add RouterTestingModule to AppComponent tests for improved routing functionality
1 parent 2fd080c commit 0e46a28

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

projects/web/src/app/app.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
import { RouterTestingModule } from '@angular/router/testing';
23

34
import { AppComponent } from './app.component';
45

@@ -8,7 +9,7 @@ describe('AppComponent', () => {
89

910
beforeEach(async () => {
1011
await TestBed.configureTestingModule({
11-
imports: [AppComponent]
12+
imports: [AppComponent, RouterTestingModule]
1213
})
1314
.compileComponents();
1415

projects/web/src/app/app.spec.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)