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: [
FormsModule,
ReactiveFormsModule,
TextMask.TextMaskModule,
NgBrazil.forRoot(),
RouterTestingModule.withRoutes(routes)
],
declarations: [
DemoComponent
],
}).compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
FormsModule,
ReactiveFormsModule,
TextMask.TextMaskModule,
NgBrazil.forRoot(),
RouterTestingModule.withRoutes(routes)
],
declarations: [
AppComponent,
DemoComponent
],
}).compileComponents();
}));
import { CommonModule } from '@angular/common';
export const routes: Routes = [
{ path: '', redirectTo: '/demo', pathMatch: 'full' },
{ path: 'demo', component: DemoComponent }
];
@NgModule({
declarations: [
AppComponent, DemoComponent
],
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
TextMask.TextMaskModule,
NgBrazil,
RouterModule.forRoot(routes)
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
FormsModule,
ReactiveFormsModule,
TextMask.TextMaskModule,
NgBrazil.forRoot(),
RouterTestingModule.withRoutes(routes)
],
declarations: [
DemoComponent
],
}).compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
FormsModule,
ReactiveFormsModule,
TextMask.TextMaskModule,
NgBrazil.forRoot(),
RouterTestingModule.withRoutes(routes)
],
declarations: [
AppComponent,
DemoComponent
],
}).compileComponents();
}));