debian-mirror-gitlab/spec/frontend/members/store/utils_spec.js
2021-02-22 17:27:13 +05:30

14 lines
347 B
JavaScript

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