We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58841d commit e520caeCopy full SHA for e520cae
npm/ng-packs/packages/core/src/lib/tests/router-outlet.component.spec.ts
@@ -1,12 +1,12 @@
1
import { Spectator, createComponentFactory } from '@ngneat/spectator/jest';
2
-import { RouterTestingModule } from '@angular/router/testing';
+import { provideRouter } from '@angular/router';
3
import { RouterOutletComponent } from '../components/router-outlet.component';
4
5
describe('RouterOutletComponent', () => {
6
let spectator: Spectator<RouterOutletComponent>;
7
const createComponent = createComponentFactory({
8
component: RouterOutletComponent,
9
- imports: [RouterTestingModule],
+ providers: [provideRouter([{ path: '' }])],
10
});
11
12
it('should have a router-outlet element', () => {
0 commit comments