summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-02-07 09:28:30 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-02-07 07:17:22 +0000
commit82d29833041744b1ace723800223004135fb56d0 (patch)
tree3ab95c12ef62466f3ad7e7e5906fbf0222951b49 /usecaseui-portal
parent5788be72a1515dd96d2c748d5145b8609b78a142 (diff)
Test case: performance-vnf component
Configured test bed for performance-vnf component Issue-ID: USECASEUI-195 Change-Id: I5a60555d8ff2f553b4fcd862e9490ae6450fc2fe Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'usecaseui-portal')
-rw-r--r--usecaseui-portal/src/app/performance/performance-vnf/performance-vnf.component.spec.ts24
1 files changed, 22 insertions, 2 deletions
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