aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-01-22 19:41:06 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2019-01-22 19:42:17 +0530
commit0e9bd730c8e839144a77c81ec6f3482e18905778 (patch)
treed581172a0ba49b9b793c2617e908eaa9327ff038 /usecaseui-portal/src
parentd77173dce1563a808ec0aa932f5072349fd215a4 (diff)
Test case: alarm.component
Configured test bed for alarm component Issue-ID: USECASEUI-195 Change-Id: I581c54d55a019a78041d8190cf8f9a0ff781f391 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'usecaseui-portal/src')
-rw-r--r--usecaseui-portal/src/app/alarm/alarm.component.spec.ts25
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();
}));