We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6889b2e commit c5d289aCopy full SHA for c5d289a
1 file changed
src/app/authentication/guard/logged-out.guard.spec.ts
@@ -1,12 +1,19 @@
1
+import { HttpClientTestingModule } from '@angular/common/http/testing';
2
import { TestBed } from '@angular/core/testing';
3
+import { RouterTestingModule } from '@angular/router/testing';
4
5
import { LoggedOutGuard } from './logged-out.guard';
6
7
describe('LoggedOutGuard', () => {
8
let guard: LoggedOutGuard;
9
10
beforeEach(() => {
- TestBed.configureTestingModule({});
11
+ TestBed.configureTestingModule({
12
+ imports: [
13
+ HttpClientTestingModule,
14
+ RouterTestingModule
15
+ ]
16
+ });
17
guard = TestBed.inject(LoggedOutGuard);
18
});
19
0 commit comments