summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src
diff options
context:
space:
mode:
authorChuyi Guo <guochuyi@chinamobile.com>2019-10-22 07:11:20 +0000
committerGerrit Code Review <gerrit@onap.org>2019-10-22 07:11:20 +0000
commit4a05e1a2b49b23b39951b782d218c7e40df86ab9 (patch)
treeb76ea0d3461d6ef39eea1488d8c50be34a0d0194 /usecaseui-portal/src
parent8a6156d740fa710b1172668a3f242fcb8a67ebf2 (diff)
parent55f0cf72ed073c09aea050b77e6e3eb925971274 (diff)
Merge "test component- spec fixes"
Diffstat (limited to 'usecaseui-portal/src')
-rw-r--r--usecaseui-portal/src/app/test/test.component.spec.ts13
1 files changed, 11 insertions, 2 deletions
diff --git a/usecaseui-portal/src/app/test/test.component.spec.ts b/usecaseui-portal/src/app/test/test.component.spec.ts
index ef4e38cb..47300e1f 100644
--- a/usecaseui-portal/src/app/test/test.component.spec.ts
+++ b/usecaseui-portal/src/app/test/test.component.spec.ts
@@ -1,5 +1,8 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+import { NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
+import { HttpClientModule } from '@angular/common/http';
+import { TextService } from '../core/services/text.service';
import { TestComponent } from './test.component';
describe('TestComponent', () => {
@@ -8,9 +11,15 @@ describe('TestComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ TestComponent ]
+ schemas: [
+ CUSTOM_ELEMENTS_SCHEMA,
+ NO_ERRORS_SCHEMA
+ ],
+ imports: [HttpClientModule],
+ providers: [TextService],
+ declarations: [TestComponent]
})
- .compileComponents();
+ .compileComponents();
}));
beforeEach(() => {