Skip to content

Commit cf54eef

Browse files
author
AvidDollars
committed
failing CI tests, add missing providers to test modules
1 parent 082c300 commit cf54eef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/app/app.component.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
import { TestBed } from '@angular/core/testing';
22
import { AppComponent } from './app.component';
33
import { provideExperimentalZonelessChangeDetection } from '@angular/core';
4+
import { provideRouter } from '@angular/router';
5+
import { routes } from './app.routes';
46

57
describe('AppComponent', () => {
68
beforeEach(async () => {
79
await TestBed.configureTestingModule({
810
imports: [AppComponent],
9-
providers: [provideExperimentalZonelessChangeDetection()],
11+
providers: [
12+
provideExperimentalZonelessChangeDetection(),
13+
provideRouter(routes),
14+
],
1015
}).compileComponents();
1116
});
1217

0 commit comments

Comments
 (0)