diff options
author | Tao Shen <shentao@chinamobile.com> | 2019-01-21 09:43:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-01-21 09:43:13 +0000 |
commit | d77173dce1563a808ec0aa932f5072349fd215a4 (patch) | |
tree | 156c6d590424e6efe2b4fa16a9b430203fa47efa /usecaseui-portal/src/app/home/home.component.spec.ts | |
parent | efe7d00c5ce63fa5ab28158485876d3772194c1f (diff) | |
parent | d2e81a024e487c57b39ddc568d264d0e07bf0739 (diff) |
Merge "Test cases for HomeComponent"
Diffstat (limited to 'usecaseui-portal/src/app/home/home.component.spec.ts')
-rw-r--r-- | usecaseui-portal/src/app/home/home.component.spec.ts | 19 |
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(); })); |