debian-mirror-gitlab/spec/frontend/groups/members/utils_spec.js
2021-03-11 19:13:27 +05:30

14 lines
430 B
JavaScript

import { groupMemberRequestFormatter } from '~/groups/members/utils';
describe('group member utils', () => {
describe('groupMemberRequestFormatter', () => {
it('returns expected format', () => {
expect(
groupMemberRequestFormatter({
accessLevel: 50,
expires_at: '2020-10-16',
}),
).toEqual({ group_member: { access_level: 50, expires_at: '2020-10-16' } });
});
});
});