debian-mirror-gitlab/spec/frontend/groups/members/utils_spec.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
430 B
JavaScript
Raw Normal View History

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' } });
});
});
});