summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuyi Guo <guochuyi@chinamobile.com>2019-10-22 07:12:45 +0000
committerGerrit Code Review <gerrit@onap.org>2019-10-22 07:12:45 +0000
commit37a9b7568d46b6abc83be71b08bd5a0c7d083e54 (patch)
tree7fe7fe06bfd9365fd7afa3a4e017d59ee3eee13c
parent4a05e1a2b49b23b39951b782d218c7e40df86ab9 (diff)
parent92e2c94793f88a7fe08696f0811002858b10f608 (diff)
Merge "onboard-vnf-vm component- spec fixes"
-rw-r--r--usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.spec.ts13
1 files changed, 12 insertions, 1 deletions
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();
}));