debian-mirror-gitlab/spec/frontend/invite_members/utils/member_utils_spec.js

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

13 lines
409 B
JavaScript
Raw Normal View History

2022-08-13 15:12:31 +05:30
import { memberName } from '~/invite_members/utils/member_utils';
describe('Member Name', () => {
it.each([
[{ username: '_username_', name: '_name_' }, '_username_'],
[{ username: '_username_' }, '_username_'],
[{ name: '_name_' }, '_name_'],
[{}, undefined],
])(`returns name from supplied member token: %j`, (member, result) => {
expect(memberName(member)).toBe(result);
});
});