fixed build errors

This commit is contained in:
Vito Albano 2016-09-30 10:29:23 +01:00
parent 0b7f3cc9a6
commit 0635b652d2
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ class StubAuthentication {
setIsBpmLoggedIn(logged: boolean) { this.isBpmConnected = logged; }; setIsBpmLoggedIn(logged: boolean) { this.isBpmConnected = logged; };
isEcmLoggedIn() { return this.isEcmConnected; }; isEcmLoggedIn() { return this.isEcmConnected; };
isBpmLoggedIn() { return this.isBpmConnected; }; isBpmLoggedIn() { return this.isBpmConnected; };
callApiGetPersonInfo() { return Promise.resolve(fakeEcmUser); }; callApiGetPersonInfo() { return Promise.resolve(fakeBpmUser); };
}; };
describe('Bpm User service', () => { describe('Bpm User service', () => {
@ -72,7 +72,7 @@ describe('Bpm User service', () => {
it('can instantiate service with authorization', inject([AlfrescoAuthenticationService], it('can instantiate service with authorization', inject([AlfrescoAuthenticationService],
(auth: AlfrescoAuthenticationService) => { (auth: AlfrescoAuthenticationService) => {
expect(auth).not.toBeNull('authorization should be provided'); 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'); expect(service instanceof BpmUserService).toBe(true, 'new service should be ok');
})); }));

View File

@ -142,7 +142,7 @@ describe('Ecm User service', () => {
it('should not call content service without avatar id', () => { it('should not call content service without avatar id', () => {
spyOn(contentServiceForTest, 'getContentUrl').and.callThrough(); spyOn(contentServiceForTest, 'getContentUrl').and.callThrough();
let urlRs = service.getCurrentUserProfileImageUrl(); let urlRs = service.getCurrentUserProfileImageUrl(undefined);
expect(urlRs).toBeUndefined(); expect(urlRs).toBeUndefined();
expect(contentServiceForTest.getContentUrl).not.toHaveBeenCalled(); expect(contentServiceForTest.getContentUrl).not.toHaveBeenCalled();
}); });