fixed wrong tests

This commit is contained in:
Vito Albano
2016-10-13 01:42:27 +01:00
parent c45b3878b7
commit cc6a685bc4
6 changed files with 145 additions and 97 deletions

View File

@@ -37,23 +37,23 @@ export class BpmUserService {
* @param userName - the user name
*/
getCurrentUserInfo(): Observable<BpmUserModel> {
if ( this.authService.isBpmLoggedIn() ) {
if (this.authService.isBpmLoggedIn()) {
return Observable.fromPromise(this.authService.getAlfrescoApi().activiti.profileApi.getProfile())
.map(
(data) => <BpmUserModel> data
)
(data) => <BpmUserModel> data
)
.catch(this.handleError);
}
}
getCurrentUserProfileImage(): Observable<any> {
if ( this.authService.isBpmLoggedIn() ) {
return Observable.fromPromise(this.callGetProfilePictureApi())
.map(
if (this.authService.isBpmLoggedIn()) {
return Observable.fromPromise(this.callGetProfilePictureApi())
.map(
(data) => data
)
.catch(this.handleError);
}
)
.catch(this.handleError);
}
}
callGetProfilePictureApi() {