mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fixed build errors
This commit is contained in:
@@ -50,7 +50,7 @@ class StubAuthentication {
|
||||
setIsBpmLoggedIn(logged: boolean) { this.isBpmConnected = logged; };
|
||||
isEcmLoggedIn() { return this.isEcmConnected; };
|
||||
isBpmLoggedIn() { return this.isBpmConnected; };
|
||||
callApiGetPersonInfo() { return Promise.resolve(fakeEcmUser); };
|
||||
callApiGetPersonInfo() { return Promise.resolve(fakeBpmUser); };
|
||||
};
|
||||
|
||||
describe('Bpm User service', () => {
|
||||
@@ -72,7 +72,7 @@ describe('Bpm User service', () => {
|
||||
it('can instantiate service with authorization', inject([AlfrescoAuthenticationService],
|
||||
(auth: AlfrescoAuthenticationService) => {
|
||||
expect(auth).not.toBeNull('authorization should be provided');
|
||||
let service = new BpmUserService(auth, null);
|
||||
let service = new BpmUserService(auth);
|
||||
expect(service instanceof BpmUserService).toBe(true, 'new service should be ok');
|
||||
}));
|
||||
|
||||
|
@@ -142,7 +142,7 @@ describe('Ecm User service', () => {
|
||||
|
||||
it('should not call content service without avatar id', () => {
|
||||
spyOn(contentServiceForTest, 'getContentUrl').and.callThrough();
|
||||
let urlRs = service.getCurrentUserProfileImageUrl();
|
||||
let urlRs = service.getCurrentUserProfileImageUrl(undefined);
|
||||
expect(urlRs).toBeUndefined();
|
||||
expect(contentServiceForTest.getContentUrl).not.toHaveBeenCalled();
|
||||
});
|
||||
|
Reference in New Issue
Block a user