diff options
Diffstat (limited to 'usecaseui-portal/src/app/alarm/alarm.component.spec.ts')
-rw-r--r-- | usecaseui-portal/src/app/alarm/alarm.component.spec.ts | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/alarm/alarm.component.spec.ts b/usecaseui-portal/src/app/alarm/alarm.component.spec.ts index c7f5a738..2cf268dd 100644 --- a/usecaseui-portal/src/app/alarm/alarm.component.spec.ts +++ b/usecaseui-portal/src/app/alarm/alarm.component.spec.ts @@ -1,14 +1,35 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { NO_ERRORS_SCHEMA,CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; +import { NgxEchartsModule } from 'ngx-echarts'; +import { NgZorroAntdModule } from 'ng-zorro-antd'; +import { TranslateModule, TranslateLoader, TranslateService, TranslateFakeLoader} from '@ngx-translate/core'; +import { HttpClientModule } from '@angular/common/http'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { NZ_I18N, en_US } from 'ng-zorro-antd'; import { AlarmComponent } from './alarm.component'; +import { DetailsComponent } from '../components/details/details.component'; +import { LineComponent } from '../components/charts/line/line.component'; +import { HomesService } from '../homes.service'; -describe('AlarmComponent', () => { +fdescribe('AlarmComponent', () => { let component: AlarmComponent; let fixture: ComponentFixture<AlarmComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ AlarmComponent ] + declarations: [ AlarmComponent, DetailsComponent, LineComponent ], + imports: [ TranslateModule.forRoot({loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }}), + NgZorroAntdModule.forRoot(), + NgxEchartsModule, + HttpClientModule, + BrowserAnimationsModule ], + providers: [ TranslateService, HomesService, + { provide: NZ_I18N, useValue: en_US } ], + schemas: [ + CUSTOM_ELEMENTS_SCHEMA, + NO_ERRORS_SCHEMA + ] }) .compileComponents(); })); |