Added logout
Change-Id: I1c01af0c2575e56b795514d5af56bd0fbe4f3133
diff --git a/src/app/hello.spec.ts b/src/app/hello.spec.ts
index 91b3f1a..30e8e79 100644
--- a/src/app/hello.spec.ts
+++ b/src/app/hello.spec.ts
@@ -1,16 +1,20 @@
/// <reference path="../../typings/index.d.ts"/>
import {HelloComponent} from './hello';
+import {LogoutComponent} from './components/logout/logout.component';
import {TestBed, async} from '@angular/core/testing';
import {StyleConfig} from './config/style.config';
import { Http, BaseRequestOptions } from '@angular/http';
import { MockBackend } from '@angular/http/testing';
+import {CookieService} from 'angular2-cookie/services/cookies.service';
+import {Router} from '@angular/router';
describe('hello component', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
- HelloComponent
+ HelloComponent,
+ LogoutComponent
],
providers: [
{
@@ -21,7 +25,12 @@
deps: [MockBackend, BaseRequestOptions]
},
MockBackend,
- BaseRequestOptions
+ BaseRequestOptions,
+ CookieService,
+ {
+ provide: Router,
+ useClass: class { navigate = jasmine.createSpy('navigate'); }
+ }
]
});
TestBed.compileComponents();