diff --git a/ng2-components/ng2-alfresco-login/src/assets/authentication.service.mock.ts b/ng2-components/ng2-alfresco-login/src/assets/authentication.service.mock.ts index 7202867077..6be706a7a9 100644 --- a/ng2-components/ng2-alfresco-login/src/assets/authentication.service.mock.ts +++ b/ng2-components/ng2-alfresco-login/src/assets/authentication.service.mock.ts @@ -16,17 +16,14 @@ */ import { Observable } from 'rxjs/Rx'; -import { AlfrescoSettingsService, AlfrescoAuthenticationService } from 'ng2-alfresco-core'; -export class AuthenticationMock extends AlfrescoAuthenticationService { +// TODO: should be extending AlfrescoAuthenticationService +export class AuthenticationMock /*extends AlfrescoAuthenticationService*/ { - constructor(settings: AlfrescoSettingsService = null) { - super(settings); - } - - login(username: string, password: string): Observable { + // TODO: real auth service returns Observable + login(username: string, password: string): Observable { if (username === 'fake-username' && password === 'fake-password') { - return Observable.of('fake-token'); + return Observable.of(true); } else { return Observable.throw('Fake server error'); }