From d23d823b431f7123e594b43e1e4b7731ab1989f5 Mon Sep 17 00:00:00 2001 From: Pete Muir Date: Thu, 2 Mar 2017 21:29:51 -0500 Subject: [PATCH] fix(astronaut): Attempt to fix failing tests --- src/app/iteration/iterations.service.spec.ts | 3 ++- src/app/work-item/work-item.service.spec.ts | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/iteration/iterations.service.spec.ts b/src/app/iteration/iterations.service.spec.ts index 852a25b5d..5f79cc2e5 100644 --- a/src/app/iteration/iterations.service.spec.ts +++ b/src/app/iteration/iterations.service.spec.ts @@ -1,3 +1,4 @@ +import { AstronautService } from './../shared/astronaut.service'; import { BaseRequestOptions, Http, @@ -78,7 +79,7 @@ describe ('Iteration service - ', () => { useValue: fakeAuthService }, { - provide: SpaceService, + provide: AstronautService, useValue: fakeSpaceService }, IterationService, diff --git a/src/app/work-item/work-item.service.spec.ts b/src/app/work-item/work-item.service.spec.ts index f4ff7b2c3..ee39aa2ab 100644 --- a/src/app/work-item/work-item.service.spec.ts +++ b/src/app/work-item/work-item.service.spec.ts @@ -1,3 +1,4 @@ +import { AstronautService } from './../shared/astronaut.service'; import { async, inject, @@ -164,7 +165,7 @@ describe('Work Item Service - ', () => { // MockDataService should be removed at some point MockDataService, { - provide: SpaceService, + provide: AstronautService, useValue: fakeSpcaeService }, WorkItemService, @@ -213,7 +214,7 @@ describe('Work Item Service - ', () => { 'type': 'workitemtypes' } }, - 'creator': {} + 'creator': {}, }, 'type': 'workitems' }