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

@@ -51,7 +51,7 @@ export class UserInfoComponent implements OnInit {
.subscribe(
(res) => {
this.ecmUser = <EcmUserModel> res;
this.getEcmAvatar();
this._getEcmAvatar();
}
);
}
@@ -72,23 +72,23 @@ export class UserInfoComponent implements OnInit {
}
}
private getEcmAvatar() {
private _getEcmAvatar() {
this.ecmUserImage = this.ecmUserService.getUserProfileImage(this.ecmUser.avatarId);
}
public getUserAvatar() {
getUserAvatar() {
return this.ecmUserImage || this.bpmUserImage || this.anonymouseImageUrl;
}
public getBpmUserAvatar() {
getBpmUserAvatar() {
return this.bpmUserImage || this.anonymouseImageUrl;
}
public getEcmUserAvatar() {
getEcmUserAvatar() {
return this.ecmUserImage || this.anonymouseImageUrl;
}
public formatValue(value: string) {
formatValue(value: string) {
return value === 'null' ? null : value;
}