From 8ac6f161c2260e48a743df82e57b4ba24ce9795c Mon Sep 17 00:00:00 2001 From: "Mohamed Asgar Samiulla(ma926a)" Date: Thu, 8 Mar 2018 14:54:47 +0530 Subject: Added some test cases on httputil service. Created a new test for dropdown.ts Issue-ID: APPC-717 Change-Id: Ic4e63520bbf16a7bd0d8ca0e0896d15ce3412d5d Signed-off-by: Mohamed Asgar Samiulla(ma926a) --- src/app/app.component.spec.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/app/app.component.spec.ts') diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index a4922f5..9eedbcb 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -27,6 +27,10 @@ import {async, TestBed} from '@angular/core/testing'; import {AppComponent} from './app.component'; import {NO_ERRORS_SCHEMA} from '@angular/core'; import {RouterTestingModule} from '@angular/router/testing'; +import {NotificationService} from './shared/services/notification.service'; +import {ParamShareService} from './shared/services/paramShare.service'; +import {MappingEditorService} from './shared/services/mapping-editor.service'; + describe('AppComponent', () => { beforeEach(() => { @@ -34,8 +38,10 @@ describe('AppComponent', () => { declarations: [ AppComponent ], - schemas: [NO_ERRORS_SCHEMA] - , imports: [RouterTestingModule] + schemas: [NO_ERRORS_SCHEMA], + imports: [RouterTestingModule], + providers: [ ParamShareService, NotificationService, MappingEditorService] + }); TestBed.compileComponents(); }); @@ -52,10 +58,4 @@ describe('AppComponent', () => { expect(app.title).toEqual('app works!'); })); - it('should render title in a h1 tag', async(() => { - const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); - const compiled = fixture.debugElement.nativeElement; - expect(compiled.querySelector('h1').textContent).toContain('app works!'); - })); }); -- cgit 1.2.3-korg