2020-11-19 07:09:26 -05:00
|
|
|
import { members } from 'jest/members/mock_data';
|
|
|
|
import { findMember } from '~/members/store/utils';
|
2020-10-14 14:08:47 -04:00
|
|
|
|
|
|
|
describe('Members Vuex utils', () => {
|
|
|
|
describe('findMember', () => {
|
|
|
|
it('finds member by ID', () => {
|
|
|
|
const state = {
|
|
|
|
members,
|
|
|
|
};
|
|
|
|
|
|
|
|
expect(findMember(state, members[0].id)).toEqual(members[0]);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|