diff --git a/src/libs/UserUtils.ts b/src/libs/UserUtils.ts index e95b62cc2437..ba19002345e7 100644 --- a/src/libs/UserUtils.ts +++ b/src/libs/UserUtils.ts @@ -105,8 +105,8 @@ function getDefaultAvatar(accountID = -1, avatarURL?: string): React.FC { + it('should return the default avatar from the avatar url', () => { + const avatarURL = 'https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_7.png'; + const defaultAvatar = UserUtils.getDefaultAvatar(1, avatarURL); + expect(typeof defaultAvatar).toBe('function'); + }); +});