beforeEach(() => { TestBed.configureTestingModule({ declarations: [EmployerComponent], // declare the test component schemas: [CUSTOM_ELEMENTS_SCHEMA], imports: [HttpModule, ReactiveFormsModule, RouterModule.forRoot(routes), MdDialogModule.forRoot(), StoreModule.provideStore({ employerStore: reducer }, {})], providers: [EmployerActions, IdActions, AuditActions, ProgressActions, { provide: RegDataService, useClass: mockRegDataSvc }, { provide: APP_BASE_HREF, useValue: '/' }] }); fixture = TestBed.createComponent(EmployerComponent); component = fixture.componentInstance; });
MdDialogModule, MdSelectModule, MdSnackBarModule } from '@angular/material'; import {BrowserModule} from '@angular/platform-browser'; import {MockBackend} from '@angular/http/testing'; export const COMMON_TESTING_MODULES = [ BrowserModule, FormsModule, MdButtonModule.forRoot(), MdButtonToggleModule.forRoot(), MdCardModule.forRoot(), MdCheckboxModule.forRoot(), MdCoreModule.forRoot(), MdDialogModule.forRoot(), MdGridListModule.forRoot(), MdIconModule.forRoot(), MdInputModule.forRoot(), MdListModule.forRoot(), MdMenuModule.forRoot(), MdProgressBarModule.forRoot(), MdProgressCircleModule.forRoot(), MdRadioModule.forRoot(), MdSelectModule.forRoot(), MdSidenavModule.forRoot(), MdSlideToggleModule.forRoot(), MdSliderModule.forRoot(), MdSnackBarModule.forRoot(), MdTabsModule.forRoot(), MdToolbarModule.forRoot(),