2021-01-21 07:09:05 -05:00
|
|
|
import { groupMemberRequestFormatter } from '~/groups/members/utils';
|
2020-10-12 05:08:38 -04:00
|
|
|
|
|
|
|
describe('group member utils', () => {
|
2021-01-21 07:09:05 -05:00
|
|
|
describe('groupMemberRequestFormatter', () => {
|
2020-10-14 14:08:47 -04:00
|
|
|
it('returns expected format', () => {
|
|
|
|
expect(
|
2021-01-21 07:09:05 -05:00
|
|
|
groupMemberRequestFormatter({
|
2020-10-14 14:08:47 -04:00
|
|
|
accessLevel: 50,
|
|
|
|
expires_at: '2020-10-16',
|
|
|
|
}),
|
|
|
|
).toEqual({ group_member: { access_level: 50, expires_at: '2020-10-16' } });
|
|
|
|
});
|
|
|
|
});
|
2020-10-12 05:08:38 -04:00
|
|
|
});
|