Skip to content

Commit c5d289a

Browse files
committed
Fixed tests imports
1 parent 6889b2e commit c5d289a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/app/authentication/guard/logged-out.guard.spec.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
import { HttpClientTestingModule } from '@angular/common/http/testing';
12
import { TestBed } from '@angular/core/testing';
3+
import { RouterTestingModule } from '@angular/router/testing';
24

35
import { LoggedOutGuard } from './logged-out.guard';
46

57
describe('LoggedOutGuard', () => {
68
let guard: LoggedOutGuard;
79

810
beforeEach(() => {
9-
TestBed.configureTestingModule({});
11+
TestBed.configureTestingModule({
12+
imports: [
13+
HttpClientTestingModule,
14+
RouterTestingModule
15+
]
16+
});
1017
guard = TestBed.inject(LoggedOutGuard);
1118
});
1219

0 commit comments

Comments
 (0)