Skip to content

Commit

Permalink
HXPMNT-542 display user email
Browse files Browse the repository at this point in the history
  • Loading branch information
tomson7777 committed Feb 6, 2025
1 parent 876f691 commit 2ea6b5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ describe('PeopleWidgetComponent', () => {
lastName: 'Doe',
email: 'john@doe.com'
};
expect(widget.getDisplayName(model)).toBe('John Doe <john@doe.com>');
expect(widget.getDisplayName(model)).toBe('John Doe');
});

it('should skip first name for display name', () => {
const model = { firstName: null, lastName: 'Doe', email: 'john@doe.com' };
expect(widget.getDisplayName(model)).toBe('Doe <john@doe.com>');
expect(widget.getDisplayName(model)).toBe('Doe');
});

it('should skip last name for display name', () => {
Expand Down

0 comments on commit 2ea6b5e

Please sign in to comment.