File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11import { TestBed } from '@angular/core/testing';<% if (routing) { %>
2- import { RouterTestingModule } from '@angular/router/testing ';<% } %>
2+ import { RouterModule } from '@angular/router';<% } %>
33import { AppComponent } from './app.component';
44
55describe('AppComponent', () => {
66 beforeEach(async () => {
77 await TestBed.configureTestingModule({<% if (routing) { %>
88 imports: [
9- RouterTestingModule
9+ RouterModule.forRoot([])
1010 ],<% } %>
1111 declarations: [
1212 AppComponent
Original file line number Diff line number Diff line change 11import { TestBed } from '@angular/core/testing' ;
2- import { RouterTestingModule } from '@angular/router/testing ' ;
2+ import { RouterModule } from '@angular/router' ;
33import { AppComponent } from './app.component' ;
44
55describe ( 'AppComponent' , ( ) => {
66 beforeEach ( async ( ) => {
77 await TestBed . configureTestingModule ( {
88 imports : [
9- RouterTestingModule
9+ RouterModule . forRoot ( [ ] )
1010 ] ,
1111 declarations : [
1212 AppComponent
Original file line number Diff line number Diff line change 11import { TestBed } from '@angular/core/testing' ;
2- import { RouterTestingModule } from '@angular/router/testing ' ;
2+ import { RouterModule } from '@angular/router' ;
33import { AppComponent } from './app.component' ;
44
55describe ( 'AppComponent' , ( ) => {
66 beforeEach ( ( ) => TestBed . configureTestingModule ( {
7- imports : [ RouterTestingModule ] ,
7+ imports : [ RouterModule . forRoot ( [ ] ) ] ,
88 declarations : [ AppComponent ]
99 } ) ) ;
1010
You can’t perform that action at this time.
0 commit comments