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,
CoreModule.forRoot(),
ContentModule.forRoot(),
ProcessModule.forRoot(),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
declarations: [DocumentlistComponent],
providers: [
PreviewService,
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
{ provide: Location, useClass: SpyLocation }
]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
BrowserAnimationsModule,
CoreModule.forRoot(),
ContentModule.forRoot(),
ProcessModule.forRoot(),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
providers: [
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
],
declarations: [ LoginComponent ]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
RouterTestingModule,
CoreModule.forRoot(),
ContentModule.forRoot(),
ProcessModule.forRoot(),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
declarations: [TaskDetailsComponent],
providers: [
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
PreviewService
]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
RouterTestingModule,
CoreModule.forRoot(),
ContentModule.forRoot(),
ProcessModule.forRoot(),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
declarations: [TasksComponent],
providers: [
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
BrowserAnimationsModule,
CoreModule.forRoot(),
ContentModule.forRoot(),
ProcessModule.forRoot(),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
declarations: [AppLayoutComponent],
providers: [
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
]
})
.compileComponents();
}));
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
RouterTestingModule,
CoreModule.forRoot(),
ProcessModule.forRoot(),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
declarations: [TaskDetailsComponent],
providers: [
PreviewService,
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
]
});
});
@NgModule({
imports: [
BrowserModule,
environment.e2e ? NoopAnimationsModule : BrowserAnimationsModule,
ReactiveFormsModule,
routing,
FormsModule,
HttpClientModule,
MaterialModule,
AppExtensionsModule,
FlexLayoutModule,
CoreModule.forRoot(),
ContentModule.forRoot(),
InsightsModule.forRoot(),
ProcessModule.forRoot(),
ProcessServicesCloudModule,
ExtensionsModule.forRoot(),
ThemePickerModule,
ChartsModule,
AppCloudSharedModule,
MonacoEditorModule.forRoot()
],
declarations: [
AppComponent,
LogoutComponent,
AppLayoutComponent,
HomeComponent,
SearchBarComponent,
SearchResultComponent,
SearchExtendedComponent,
LogComponent,
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
CoreModule.forRoot(),
ContentModule.forRoot(),
ProcessModule.forRoot(),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
declarations: [DocumentlistComponent],
providers: [
PreviewService,
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
{ provide: AppConfigService, useClass: AppConfigServiceMock },
{ provide: Location, useClass: SpyLocation }
]
});
fixture = TestBed.createComponent(DocumentlistComponent);
component = fixture.componentInstance;
});
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
ReactiveFormsModule,
routing,
FormsModule,
HttpClientModule,
MaterialModule,
AppExtensionsModule,
FlexLayoutModule,
CoreModule.forRoot(),
ContentModule.forRoot(),
InsightsModule.forRoot(),
ProcessModule.forRoot(),
ProcessServicesCloudModule,
ExtensionsModule.forRoot(),
ThemePickerModule,
ChartsModule,
MonacoEditorModule.forRoot()
],
declarations: [
AppComponent,
LoginComponent,
LogoutComponent,
AppLayoutComponent,
HomeComponent,
SearchBarComponent,
SearchResultComponent,
SearchExtendedComponent,
LogComponent,
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
RouterTestingModule,
CoreModule.forRoot(),
ContentModule.forRoot(),
ProcessModule.forRoot(),
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateLoaderService }
})
],
declarations: [StartProcessComponent],
providers: [
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }
]
});
});