summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2019-02-12 07:09:18 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-12 07:09:18 +0000
commitfe1c58a91464f603905d4e7a327208ed374d9829 (patch)
tree1695c05058ef61fc3654d4ddea909d37ef7ae66d /usecaseui-portal/src/app
parentf0931c5746f58b40a7d827b63901c9b0cf925561 (diff)
parent82d29833041744b1ace723800223004135fb56d0 (diff)
Merge "Test case: performance-vnf component"
Diffstat (limited to 'usecaseui-portal/src/app')
-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