Test case: performance-vnf component 27/78027/2
authorArundathi Patil <arundpil@in.ibm.com>
Thu, 7 Feb 2019 03:58:30 +0000 (09:28 +0530)
committerArundathi Patil <arundpil@in.ibm.com>
Thu, 7 Feb 2019 07:17:22 +0000 (07:17 +0000)
Configured test bed for performance-vnf component

Issue-ID: USECASEUI-195
Change-Id: I5a60555d8ff2f553b4fcd862e9490ae6450fc2fe
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
usecaseui-portal/src/app/performance/performance-vnf/performance-vnf.component.spec.ts

index c535b73..18526cd 100644 (file)
@@ -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