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(() => {
init();
TestBed.configureTestingModule({
declarations: [NameVariantModalComponent],
imports: [NgbModule.forRoot(), TranslateModule.forRoot()],
providers: [{ provide: NgbActiveModal, useValue: modal }]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.overrideModule(BrowserDynamicTestingModule, {
set: {
entryComponents: [DynamicNGBootstrapInputComponent]
}
});
TestBed.configureTestingModule({
imports: [
FormsModule,
ReactiveFormsModule,
NgbModule.forRoot(),
DynamicFormsCoreModule.forRoot(),
SharedModule,
TranslateModule.forRoot(),
TextMaskModule
],
providers: [DsDynamicFormControlContainerComponent, DynamicFormService],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents().then(() => {
fixture = TestBed.createComponent(DsDynamicFormControlContainerComponent);
component = fixture.componentInstance;
debugElement = fixture.debugElement;
});
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
ContributorsComponent,
pipe,
GetFirstWord
],
imports: [
FormsModule,
MDBBootstrapModule.forRoot(),
NgbModule.forRoot()
]
})
.compileComponents();
}));
{ path: 'range', component: RangeExample, data: { title: 'Range' } },
{ path: 'rangeLength', component: RangeLength, data: { title: 'Range length' } },
{ path: 'url', component: Url, data: { title: 'URL' } },
{ path: 'uuid', component: Uuid, data: { title: 'UUID' } },
];
@NgModule({
imports: [
BrowserModule,
CommonModule,
FormsModule,
ReactiveFormsModule,
NgValidatorsModule,
HttpClientModule,
ChechoutFormModule,
NgbModule.forRoot(),
RouterModule.forRoot(
appRoutes,
{
useHash: true
}
)
],
declarations: [
AppComponent,
LayoutHeaderComponent,
LayoutSidenavComponent,
Required,
Minlength,
Maxlength,
Pattern,
Base64,
import { BrowserModule } from '@angular/platform-browser';
import { APP_BASE_HREF } from '@angular/common';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { SharedModule } from './shared/shared.module';
import { ServicesModule } from './services/services.module';
import { FeaturesModule } from './features/features.module';
import { PipesModule } from './pipes/pipes.module';
declare var BASE_LOCATION_HREF:any;
@NgModule({
imports: [BrowserModule, HttpModule, NgbModule.forRoot(), AppRoutingModule, SharedModule.forRoot(),ServicesModule, FeaturesModule, PipesModule],
declarations: [AppComponent],
providers: [{
provide: APP_BASE_HREF,
useValue: BASE_LOCATION_HREF
}],
bootstrap: [AppComponent]
})
export class AppModule {
constructor(){
}
}
import { SharedModule } from "../shared/shared.module";
const routes: Routes = [
{ path: "", component: UserManagementComponent, canActivate: [AuthGuard] },
{ path: "user", component: UserManagementUserComponent, canActivate: [AuthGuard] },
{ path: "user/:id", component: UserManagementUserComponent, canActivate: [AuthGuard] },
{ path: "updatedetails", component: UpdateDetailsComponent, canActivate: [AuthGuard] },
];
@NgModule({
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
RouterModule.forChild(routes),
NgbModule.forRoot(),
MultiSelectModule,
PipeModule,
ConfirmDialogModule,
TooltipModule,
OrderModule,
SidebarModule,
SharedModule,
],
declarations: [
UserManagementComponent,
UpdateDetailsComponent,
UserManagementUserComponent,
],
exports: [
RouterModule,
],
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [NgbModule.forRoot(), ReactiveFormsModule],
declarations: [PartitionFilterComponent, FilterTemplateComponent, EllipsisOverflowComponent],
providers: [FormBuilder]
})
.compileComponents();
}));
import { SimpleSearchComponent } from './simple-search.component';
import { SimpleSearchFormComponent } from './simple-search-form.component';
import {SearchNavigationGuardService} from './search-navigation-guard.service';
@NgModule({
imports: [
CommonModule,
AppCommonModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
SimpleSearchRoutingModule,
CatalogueModule,
BPEModule,
NgbModule.forRoot()
],
declarations: [
SimpleSearchComponent,
SimpleSearchFormComponent
],
exports: [
SimpleSearchComponent,
SimpleSearchFormComponent
],
providers: [
SearchNavigationGuardService
]
})
export class SimpleSearchModule {}
}
const DEV_MODULES: any[] = [];
if (!ENV_CONFIG.production) {
DEV_MODULES.push(StoreDevtoolsModule.instrument({ maxAge: 50 }));
}
@NgModule({
imports: [
CommonModule,
HttpModule,
RouterModule,
AppRoutingModule,
CoreModule.forRoot(),
NgbModule.forRoot(),
TranslateModule.forRoot(),
EffectsModule.forRoot(appEffects),
StoreModule.forRoot(appReducers),
StoreRouterConnectingModule,
...DEV_MODULES
],
providers: [
{
provide: GLOBAL_CONFIG,
useFactory: (getConfig)
},
{
provide: APP_BASE_HREF,
useFactory: (getBase)
},
{
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [CommonModule, RouterTestingModule.withRoutes([]), TranslateModule.forRoot(), NgbModule.forRoot()],
declarations: [ItemStatusComponent],
providers: [
{ provide: Router, useValue: routerStub },
{ provide: HostWindowService, useValue: new HostWindowServiceStub(0) }
], schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents();
}));