Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
WorkbenchTestingModule.forRoot(),
WorkbenchApplicationPlatformModule.forRoot({errorHandler: NullErrorHandler, applicationConfig: []}),
RouterTestingModule.withRoutes([{path: 'lazy-module-forroot', loadChildren: './lazy-forroot.module'}]),
],
});
});
return {
name: app.appName,
intents: [],
capabilities: [],
};
}
/****************************************************************************************************
* Definition of App Test Module *
****************************************************************************************************/
@NgModule({
imports: [
HttpClientTestingModule,
RouterTestingModule.withRoutes([]),
WorkbenchTestingModule.forRoot(),
WorkbenchApplicationPlatformModule.forRoot({
errorHandler: NullErrorHandler,
applicationConfig: [
{symbolicName: 'app-1', manifestUrl: 'http://www.app-1/manifest'},
{symbolicName: 'app-2', manifestUrl: 'http://www.app-2/manifest'},
{symbolicName: 'app-3', manifestUrl: 'http://www.app-3/manifest'},
],
}),
],
})
class AppTestModule {
}