mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
fixed build errors
This commit is contained in:
parent
0b7f3cc9a6
commit
0635b652d2
@ -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();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user