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: [
TranslateModule.forRoot(),
// Just import DocViewerModule since it contains all doc viewer component and dependencies
DocViewerModule
],
providers: [
{
provide: AltairConfig,
useValue: new AltairConfig(),
},
]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [HeaderComponent],
schemas: [NO_ERRORS_SCHEMA],
imports: [
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: (createTranslateLoader),
deps: [HttpClient]
}
}),
SharedModule,
RouterTestingModule.withRoutes([])
],
providers: [
{provide: 'LoggerService', useFactory: loggerFactory},
{provide: 'api.config', useValue: apiConfig},
{provide: 'AuthService', useClass: OAuthService},
{provide: 'defaultLanguage', useValue: 'en'},
SpinnerService,
AuthHelper
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot()],
declarations: [
MockComponent(BreadcrumbComponent),
MockComponent(FaIconComponent),
MockComponent(FilterNavigationContainerComponent),
MockComponent(NgbCollapse),
MockComponent(ProductListingContainerComponent),
SearchResultComponent,
],
}).compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [DummyComponent, MockComponent(RegistrationFormComponent), RegistrationPageContainerComponent],
providers: [{ provide: AVAILABLE_LOCALES, useValue: defaultLocales }],
imports: [
RouterTestingModule.withRoutes([{ path: 'home', component: DummyComponent }]),
TranslateModule.forRoot(),
ngrxTesting({ reducers: coreReducers }),
],
}).compileComponents();
location = TestBed.get(Location);
}));
@NgModule({
declarations: [
AppComponent,
WebviewDirective,
],
imports: [
BrowserModule,
FormsModule,
HttpClientModule,
AppRoutingModule,
HomeModule,
SettingsModule,
LogDisplayModule,
DialogModule,
NavModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: (HttpLoaderFactory),
deps: [HttpClient]
}
}),
NgbModule,
BrowserAnimationsModule,
NbThemeModule.forRoot({ name: 'dark' }),
NbLayoutModule,
NbEvaIconsModule,
NbWindowModule.forRoot({
closeOnBackdropClick: true
}),
NbSpinnerModule,
NbButtonModule,
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
CheckoutPaymentPageComponent,
MockComponent(CheckoutPaymentComponent),
MockComponent(LoadingComponent),
],
imports: [
TranslateModule.forRoot(),
ngrxTesting({
reducers: {
checkout: combineReducers(checkoutReducers),
shopping: combineReducers(shoppingReducers),
},
}),
],
}).compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
AppConfigModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useClass: AlfrescoTranslateLoader
}
})
],
providers: [
AlfrescoApiService,
AlfrescoSettingsService,
UserPreferencesService,
StorageService,
LogService
]
}).compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
TranslateModule.forRoot(),
RouterTestingModule,
HttpClientTestingModule,
MatCardModule,
MatTableModule
],
declarations: [ TrackResultComponent ],
providers: [TrackOrderService]
})
.compileComponents()
}))
},
];
@NgModule({
declarations: [
AppComponent,
NewVersionDialogComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
RouterModule.forRoot(appRoutes,
{enableTracing: true}),
TranslateModule.forRoot(),
MatMomentDateModule,
MatButtonModule,
MatIconModule,
MatDialogModule,
LoginModule,
MainModule,
SetupModule,
NetworkModule,
NotifierModule,
I18nModule,
DisclaimerModule,
NgxElectronModule,
MatCardModule,
MatTooltipModule,
MatFormFieldModule,