Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
TemplateSchemaExampleComponent
} from './template-schema-example/template-schema-example.component';
@NgModule({
declarations: [
AppComponent,
JsonSchemaExampleComponent,
TemplateSchemaExampleComponent
],
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
RouterModule.forRoot(routes),
SchemaFormModule.forRoot(),
TemplateSchemaModule
],
providers: [
{provide: WidgetRegistry, useClass: DefaultWidgetRegistry},
{
provide: SchemaValidatorFactory,
useClass: ZSchemaValidatorFactory
}
],
bootstrap: [AppComponent]
})
export class AppModule { }
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent,
CustomViewView,
CustomSfEditView,
FakeCustomBreadcrumbs,
CustomGlobalNavigation,
Search,
],
imports: [
HttpClientTestingModule,
TraversalModule,
RESTAPIModule,
SchemaFormModule.forRoot(),
FormsModule,
],
providers: [
{ provide: APP_BASE_HREF, useValue: '/' },
{
provide: 'CONFIGURATION', useValue: {
BACKEND_URL: 'http://fake/Plone',
}
},
],
});
TestBed.overrideModule(BrowserDynamicTestingModule, {
set: {
entryComponents: [CustomViewView],
},