From 92e2c94793f88a7fe08696f0811002858b10f608 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Fri, 6 Sep 2019 22:26:56 +0530 Subject: onboard-vnf-vm component- spec fixes Fixed multiple errors in onboard-vnf-vm component spec file Issue-ID: USECASEUI-280 Change-Id: I59bcca90a0daaf5f2da0f2fb786178b5f80e3947 Signed-off-by: Arundathi Patil --- .../onboard-vnf-vm/onboard-vnf-vm.component.spec.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.spec.ts') diff --git a/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.spec.ts b/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.spec.ts index 0e49f656..07c8b959 100644 --- a/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.spec.ts +++ b/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.spec.ts @@ -1,6 +1,11 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; +import { TranslateModule } from '@ngx-translate/core'; +import { HttpClientModule } from '@angular/common/http'; +import { NzMessageService, NzModalService } from 'ng-zorro-antd'; import { OnboardVnfVmComponent } from './onboard-vnf-vm.component'; +import { onboardService } from '../../../core/services/onboard.service'; describe('OnboardVnfVmComponent', () => { let component: OnboardVnfVmComponent; @@ -8,7 +13,13 @@ describe('OnboardVnfVmComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ OnboardVnfVmComponent ] + schemas: [ + CUSTOM_ELEMENTS_SCHEMA, + NO_ERRORS_SCHEMA + ], + imports: [TranslateModule, HttpClientModule], + declarations: [ OnboardVnfVmComponent ], + providers: [onboardService, NzMessageService, NzModalService] }) .compileComponents(); })); -- cgit 1.2.3-korg