summaryrefslogtreecommitdiffstats
path: root/src/app/app.component.spec.ts
diff options
context:
space:
mode:
authorMohamed Asgar Samiulla(ma926a) <ma926a@us.att.com>2018-03-08 14:54:47 +0530
committerMohamed Asgar Samiulla(ma926a) <ma926a@us.att.com>2018-03-08 19:26:29 +0530
commit8ac6f161c2260e48a743df82e57b4ba24ce9795c (patch)
treecbe3d88ffe270bf15079a198621ccc3ba84f67f2 /src/app/app.component.spec.ts
parent0e82fc327457a80ee79380580850526b3ceff732 (diff)
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) <ma926a@us.att.com>
Diffstat (limited to 'src/app/app.component.spec.ts')
-rw-r--r--src/app/app.component.spec.ts16
1 files changed, 8 insertions, 8 deletions
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!');
- }));
});