Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
configureTestSuite(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
FormsModule,
ReactiveFormsModule,
NoopAnimationsModule,
MatListModule,
MatIconModule,
MatFormFieldModule,
MatInputModule,
MockModule(NgxScrollToFirstInvalidModule)
],
declarations: [
MockComponent(HeroRemoveComponent),
MockComponent(LoadingPlaceholderComponent),
HeroesListPageComponent
],
providers: [
{provide: MatSnackBar, useValue: matSnackBarSpy},
{provide: MatDialog, useValue: matDialogSpy},
{provide: HeroService, useValue: heroServiceSpy},
{
provide: I18n, useValue: () => {
}
},
{provide: ROUTES_CONFIG, useValue: RoutesConfig},
{
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
TestedComponent,
],
imports: [
MockModule(DependencyModule),
],
});
});