test component- spec fixes 75/95175/1
authorArundathi Patil <arundpil@in.ibm.com>
Fri, 6 Sep 2019 16:31:24 +0000 (22:01 +0530)
committerArundathi Patil <arundpil@in.ibm.com>
Fri, 6 Sep 2019 16:32:51 +0000 (22:02 +0530)
Fixed multiple errors in test component spec file

Issue-ID: USECASEUI-280
Change-Id: Ib0095a9052963010213538f1e6b75cdbeb944a51
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
usecaseui-portal/src/app/test/test.component.spec.ts

index ef4e38c..47300e1 100644 (file)
@@ -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(() => {