From 786678be809321f7b17aa73936ce59e0f217533e Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Wed, 20 Apr 2016 11:11:33 +0100 Subject: [PATCH] Fix unit tests --- demo-shell-ng2/app/services/authentication.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo-shell-ng2/app/services/authentication.spec.ts b/demo-shell-ng2/app/services/authentication.spec.ts index 9587edbe73..5860496b9e 100644 --- a/demo-shell-ng2/app/services/authentication.spec.ts +++ b/demo-shell-ng2/app/services/authentication.spec.ts @@ -1,8 +1,8 @@ -import {it, inject, injectAsync, describe, beforeEachProviders, TestComponentBuilder} from 'angular2/testing'; +import {it, describe} from 'angular2/testing'; import {provide, Injector} from 'angular2/core'; import {Http, HTTP_PROVIDERS, XHRBackend, Response, ResponseOptions} from 'angular2/http'; import {MockBackend} from 'angular2/http/testing'; -import {Authentication} from 'app/services/authentication'; +import {Authentication} from './authentication'; describe('Authentication', () => { let injector, @@ -74,7 +74,7 @@ describe('Authentication', () => { it('should return false and token undefined on log out', () => { service.token = 'fake-token'; - localStorage.setItem('token','fake-token'); + localStorage.setItem('token', 'fake-token'); service.logout() .subscribe( () => { expect(service.isLoggedIn()).toBe(false);