diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2019-09-06 22:01:24 +0530 |
---|---|---|
committer | Arundathi Patil <arundpil@in.ibm.com> | 2019-09-06 22:02:51 +0530 |
commit | 55f0cf72ed073c09aea050b77e6e3eb925971274 (patch) | |
tree | 70842b3f8ab40f056abb14c2c90b6b82725e8e9d /usecaseui-portal/src/app/test | |
parent | ed3a07f731f0c6f70234ca107ac46f44ec538faf (diff) |
test component- spec fixes
Fixed multiple errors in test component spec file
Issue-ID: USECASEUI-280
Change-Id: Ib0095a9052963010213538f1e6b75cdbeb944a51
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'usecaseui-portal/src/app/test')
-rw-r--r-- | usecaseui-portal/src/app/test/test.component.spec.ts | 13 |
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(() => { |