2021-03-11 19:13:27 +05:30
|
|
|
import { groupMemberRequestFormatter } from '~/groups/members/utils';
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
describe('group member utils', () => {
|
2021-03-11 19:13:27 +05:30
|
|
|
describe('groupMemberRequestFormatter', () => {
|
2021-01-03 14:25:43 +05:30
|
|
|
it('returns expected format', () => {
|
|
|
|
expect(
|
2021-03-11 19:13:27 +05:30
|
|
|
groupMemberRequestFormatter({
|
2021-01-03 14:25:43 +05:30
|
|
|
accessLevel: 50,
|
|
|
|
expires_at: '2020-10-16',
|
|
|
|
}),
|
|
|
|
).toEqual({ group_member: { access_level: 50, expires_at: '2020-10-16' } });
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|