2021-02-22 17:27:13 +05:30
|
|
|
import { members } from 'jest/members/mock_data';
|
|
|
|
import { findMember } from '~/members/store/utils';
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
describe('Members Vuex utils', () => {
|
|
|
|
describe('findMember', () => {
|
|
|
|
it('finds member by ID', () => {
|
|
|
|
const state = {
|
|
|
|
members,
|
|
|
|
};
|
|
|
|
|
|
|
|
expect(findMember(state, members[0].id)).toEqual(members[0]);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|