Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ RouterTestingModule.withRoutes([]), TourNgBootstrapModule.forRoot() ],
declarations: [ ProductTourComponent ],
providers: [ TourService ]
})
.compileComponents();
}));
@NgModule({
declarations: [NgBootstrapComponent, DocsComponent, OtherRouteComponent],
imports: [
CommonModule,
RouterModule.forChild([{
component: NgBootstrapComponent,
path: '',
children: [{
component: DocsComponent,
path: '',
}, {
component: OtherRouteComponent,
path: 'other',
}]
}]),
TourNgBootstrapModule.forRoot(),
],
})
export class NgBootstrapModule { }