Skip to content

Commit e7c6b60

Browse files
committed
Validate new campCollaboration color & abbreviation
1 parent fac55aa commit e7c6b60

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

common/helpers/__tests__/campCollaborationInitials.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ describe('campCollaborationInitials', () => {
1515
'BA',
1616
],
1717
[{ inviteEmail: '[email protected]', status: 'inactive', user: null }, 'EC'],
18-
])('maps %p to %p', (input, expected) => {
18+
[{ abbreviation: 'B', inviteEmail: null, user: null }, 'B'],
19+
])('maps %o to "%s"', (input, expected) => {
1920
expect(campCollaborationInitials(input)).toEqual(expected)
2021
})
2122
})

common/helpers/__tests__/colors.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ describe('campCollaborationColor', () => {
3939
[{ id: 'fffffff', _meta: {} }, '#992600'],
4040
[{ _meta: { loading: true } }, '#4d4d4d'],
4141
[{ id: 'fffffff', user: () => ({ _meta: { loading: true } }) }, '#4d4d4d'],
42-
])('maps %p to %p', (input, expected) => {
42+
[{ color: '#ECA110' }, '#ECA110'],
43+
])('maps %o to "%s"', (input, expected) => {
4344
expect(campCollaborationColor(input)).toEqual(expected)
4445
})
4546
})

0 commit comments

Comments
 (0)