NotesService: Add unit tests

Fixed toUserDto method of UsersService: If a user has no email an empty string should be returned (like with the photoUrl) instead of null.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-02-20 16:09:22 +01:00 committed by David Mehren
parent 128d861512
commit bafe379cc3
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 808 additions and 9 deletions

View file

@ -63,7 +63,7 @@ export class UsersService {
userName: user.userName,
displayName: user.displayName,
photo: this.getPhotoUrl(user),
email: user.email,
email: user.email ?? '',
};
}
}