From 55f0cf72ed073c09aea050b77e6e3eb925971274 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Fri, 6 Sep 2019 22:01:24 +0530 Subject: test component- spec fixes Fixed multiple errors in test component spec file Issue-ID: USECASEUI-280 Change-Id: Ib0095a9052963010213538f1e6b75cdbeb944a51 Signed-off-by: Arundathi Patil --- usecaseui-portal/src/app/test/test.component.spec.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'usecaseui-portal/src') 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(() => { -- cgit 1.2.3-korg