How to use the @scion/workbench.WorkbenchTestingModule.forRoot function in @scion/workbench

To help you get started, we’ve selected a few @scion/workbench examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application-platform / src / lib / spec / workbench-application-platform.module.spec.ts View on Github external
beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [
        WorkbenchTestingModule.forRoot(),
        WorkbenchApplicationPlatformModule.forRoot({errorHandler: NullErrorHandler, applicationConfig: []}),
        RouterTestingModule.withRoutes([{path: 'lazy-module-forroot', loadChildren: './lazy-forroot.module'}]),
      ],
    });
  });
github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application-platform / src / lib / spec / manifest-collector.spec.ts View on Github external
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 {
}

@scion/workbench

SCION Workbench enables the creation of Angular web applications that require a flexible layout to arrange content side-by-side or stacked, all personalizable by the user via drag & drop.

EPL-2.0
Latest version published 22 days ago

Package Health Score

82 / 100
Full package analysis