summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-01-14 08:59:49 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2019-01-14 09:00:06 +0530
commitd2e81a024e487c57b39ddc568d264d0e07bf0739 (patch)
tree86267aa10260157c32911fe26b26b6bd93106437 /usecaseui-portal/src/app
parentee500f6f43efc488033f7be223a08b0dbe087af6 (diff)
Test cases for HomeComponent
Added karma configuration file and fixed test case in home component Issue-ID: USECASEUI-195 Change-Id: I7934a12996087fe6d9df3610a766361117d90cd2 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'usecaseui-portal/src/app')
-rw-r--r--usecaseui-portal/src/app/home/home.component.spec.ts19
1 files changed, 17 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/home/home.component.spec.ts b/usecaseui-portal/src/app/home/home.component.spec.ts
index 490e81bd..7ed6abfc 100644
--- a/usecaseui-portal/src/app/home/home.component.spec.ts
+++ b/usecaseui-portal/src/app/home/home.component.spec.ts
@@ -1,14 +1,29 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+import { TranslateModule, TranslateLoader, TranslateService, TranslateFakeLoader} from '@ngx-translate/core';
+import { NgZorroAntdModule } from 'ng-zorro-antd';
+import { NgxEchartsModule } from 'ngx-echarts';
+import { HttpClientModule } from '@angular/common/http';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HomeComponent } from './home.component';
+import { PieComponent } from '../components/charts/pie/pie.component';
+import { BarComponent } from '../components/charts/bar/bar.component';
+import { LineComponent } from '../components/charts/line/line.component';
+import { HomesService } from '../homes.service';
-describe('HomeComponent', () => {
+fdescribe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ HomeComponent ]
+ declarations: [ HomeComponent, PieComponent, BarComponent, LineComponent ],
+ imports: [TranslateModule.forRoot({loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }}),
+ NgZorroAntdModule,
+ NgxEchartsModule,
+ HttpClientModule,
+ BrowserAnimationsModule],
+ providers: [HomesService, TranslateService]
})
.compileComponents();
}));