gitlab-org--gitlab-foss/spec/frontend/members/store/utils_spec.js

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

15 lines
347 B
JavaScript
Raw Normal View History

import { members } from 'jest/members/mock_data';
import { findMember } from '~/members/store/utils';
describe('Members Vuex utils', () => {
describe('findMember', () => {
it('finds member by ID', () => {
const state = {
members,
};
expect(findMember(state, members[0].id)).toEqual(members[0]);
});
});
});