Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
DynamicComponentModule.forRoot({
imports: [CommonModule],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [] // for issue #27
})
],
declarations: [MultipleCmp, TestCmp, ButtonComponent],
});
});
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', async(() => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [SavedAddressComponent]
}).compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ AdminSonarQubeComponent ],
imports: [
BrowserModule,
BrowserAnimationsModule,
RouterTestingModule,
FormsModule,
TranslateTestingModule,
MatTooltipModule,
MatIconModule,
MatCardModule,
MatInputModule,
MatDialogModule,
MatListModule,
MatDividerModule,
MatSnackBarModule,
MatFormFieldModule,
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HighLightComponent ]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [EmailPasswordComponent],
imports: [
SharedModule,
TranslateModule.forRoot()
]
})
.compileComponents();
}));
beforeEach(() => {
TestBed.configureTestingModule({
imports: [],
declarations: [HintComponent, TestComponent],
});
fixture = TestBed.createComponent(TestComponent);
testComponent = fixture.componentInstance;
de = fixture.debugElement.query(By.css("bl-hint"));
fixture.detectChanges();
});
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ReadingsListComponent ]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [SharedModule.forRoot(), CoreModule.forRoot(), HttpClientTestingModule, SuiModule, TelemetryModule.forRoot()],
declarations: [PublicCourseComponent],
providers: [PublicPlayerService, { provide: ResourceService, useValue: resourceBundle },
{ provide: Router, useClass: RouterStub },
{ provide: ActivatedRoute, useClass: FakeActivatedRoute }],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TodoHeaderComponent ]
})
.compileComponents();
}));