From 82d29833041744b1ace723800223004135fb56d0 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Thu, 7 Feb 2019 09:28:30 +0530 Subject: Test case: performance-vnf component Configured test bed for performance-vnf component Issue-ID: USECASEUI-195 Change-Id: I5a60555d8ff2f553b4fcd862e9490ae6450fc2fe Signed-off-by: Arundathi Patil --- .../performance-vnf.component.spec.ts | 24 ++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'usecaseui-portal/src/app/performance/performance-vnf/performance-vnf.component.spec.ts') diff --git a/usecaseui-portal/src/app/performance/performance-vnf/performance-vnf.component.spec.ts b/usecaseui-portal/src/app/performance/performance-vnf/performance-vnf.component.spec.ts index c535b737..18526cdd 100644 --- a/usecaseui-portal/src/app/performance/performance-vnf/performance-vnf.component.spec.ts +++ b/usecaseui-portal/src/app/performance/performance-vnf/performance-vnf.component.spec.ts @@ -1,6 +1,16 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { NO_ERRORS_SCHEMA,CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; +import { TranslateModule, TranslateLoader, TranslateService, TranslateFakeLoader} from '@ngx-translate/core'; +import { NgZorroAntdModule } from 'ng-zorro-antd'; +import { NgxEchartsModule } from 'ngx-echarts'; +import { NZ_I18N, en_US } from 'ng-zorro-antd'; +import { HttpClientModule } from '@angular/common/http'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { PerformanceDetailsComponent } from '../../components/performance-details/performance-details.component'; +import { GraphiclistComponent } from '../../components/graphiclist/graphiclist.component'; import { PerformanceVnfComponent } from './performance-vnf.component'; +import { HomesService } from '../../homes.service'; describe('PerformanceVnfComponent', () => { let component: PerformanceVnfComponent; @@ -8,7 +18,17 @@ describe('PerformanceVnfComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ PerformanceVnfComponent ] + declarations: [ PerformanceVnfComponent, PerformanceDetailsComponent, GraphiclistComponent ], + imports: [ TranslateModule.forRoot({loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }}), + NgZorroAntdModule.forRoot(), + NgxEchartsModule, + HttpClientModule, + BrowserAnimationsModule ], + providers: [TranslateService, HomesService ], + schemas: [ + CUSTOM_ELEMENTS_SCHEMA, + NO_ERRORS_SCHEMA + ] }) .compileComponents(); })); @@ -22,4 +42,4 @@ describe('PerformanceVnfComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); -}); +}); \ No newline at end of file -- cgit 1.2.3-korg