mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
Fix DI issue in AuthenticationService tests
This commit is contained in:
@@ -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 = {};
|
||||||
|
Reference in New Issue
Block a user