diff options
Diffstat (limited to 'usecaseui-portal/src/app')
-rw-r--r-- | usecaseui-portal/src/app/performance/performance-vnf/performance-vnf.component.spec.ts | 24 |
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 |