File tree 3 files changed +6
-6
lines changed
packages/schematics/angular/application/files/module-files/src/app
tests/legacy-cli/e2e/assets
18-ssr-project-webpack/src/app
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { TestBed } from '@angular/core/testing';<% if (routing) { %>
2
- import { RouterTestingModule } from '@angular/router/testing ';<% } %>
2
+ import { RouterModule } from '@angular/router';<% } %>
3
3
import { AppComponent } from './app.component';
4
4
5
5
describe('AppComponent', () => {
6
6
beforeEach(async () => {
7
7
await TestBed.configureTestingModule({<% if (routing) { %>
8
8
imports: [
9
- RouterTestingModule
9
+ RouterModule.forRoot([])
10
10
],<% } %>
11
11
declarations: [
12
12
AppComponent
Original file line number Diff line number Diff line change 1
1
import { TestBed } from '@angular/core/testing' ;
2
- import { RouterTestingModule } from '@angular/router/testing ' ;
2
+ import { RouterModule } from '@angular/router' ;
3
3
import { AppComponent } from './app.component' ;
4
4
5
5
describe ( 'AppComponent' , ( ) => {
6
6
beforeEach ( async ( ) => {
7
7
await TestBed . configureTestingModule ( {
8
8
imports : [
9
- RouterTestingModule
9
+ RouterModule . forRoot ( [ ] )
10
10
] ,
11
11
declarations : [
12
12
AppComponent
Original file line number Diff line number Diff line change 1
1
import { TestBed } from '@angular/core/testing' ;
2
- import { RouterTestingModule } from '@angular/router/testing ' ;
2
+ import { RouterModule } from '@angular/router' ;
3
3
import { AppComponent } from './app.component' ;
4
4
5
5
describe ( 'AppComponent' , ( ) => {
6
6
beforeEach ( ( ) => TestBed . configureTestingModule ( {
7
- imports : [ RouterTestingModule ] ,
7
+ imports : [ RouterModule . forRoot ( [ ] ) ] ,
8
8
declarations : [ AppComponent ]
9
9
} ) ) ;
10
10
You can’t perform that action at this time.
0 commit comments