Skip to content

Commit fc8a3aa

Browse files
committed
Test if it takes the abbreviation and not the display name
1 parent e7c6b60 commit fc8a3aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/helpers/__tests__/campCollaborationInitials.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe('campCollaborationInitials', () => {
1616
],
1717
[{ inviteEmail: '[email protected]', status: 'inactive', user: null }, 'EC'],
1818
[{ abbreviation: 'B', inviteEmail: null, user: null }, 'B'],
19+
[{ abbreviation: 'AA', user: () => ({ displayName: 'Bi-Pi' }) }, 'AA'],
1920
])('maps %o to "%s"', (input, expected) => {
2021
expect(campCollaborationInitials(input)).toEqual(expected)
2122
})

0 commit comments

Comments
 (0)