Fix DI issue in AuthenticationService tests

This commit is contained in:
Will Abson
2016-06-10 09:29:11 +01:00
parent 7391dcb9a8
commit e7cf6f0225

View File

@@ -20,6 +20,7 @@ import { provide, Injector } from 'angular2/core';
import { Http, HTTP_PROVIDERS, XHRBackend, Response, ResponseOptions } from 'angular2/http'; import { Http, HTTP_PROVIDERS, XHRBackend, Response, ResponseOptions } from 'angular2/http';
import { MockBackend } from 'angular2/http/testing'; import { MockBackend } from 'angular2/http/testing';
import { AlfrescoAuthenticationService } from './AlfrescoAuthenticationService.service'; import { AlfrescoAuthenticationService } from './AlfrescoAuthenticationService.service';
import { AlfrescoSettingsService } from './AlfrescoSettingsService.service';
describe('AlfrescoAuthentication', () => { describe('AlfrescoAuthentication', () => {
@@ -34,7 +35,8 @@ describe('AlfrescoAuthentication', () => {
HTTP_PROVIDERS, HTTP_PROVIDERS,
MockBackend, MockBackend,
provide(XHRBackend, {useClass: MockBackend}), provide(XHRBackend, {useClass: MockBackend}),
AlfrescoAuthenticationService AlfrescoAuthenticationService,
AlfrescoSettingsService
]); ]);
let store = {}; let store = {};