chore: Sets up store for teams settings page (#1727)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
committed by
GitHub
parent
c61edff189
commit
6a614a520b
@@ -0,0 +1,12 @@
|
||||
import { mutations, ADD_AGENTS_TO_TEAM } from '../../teamMembers';
|
||||
import teamMembers from './fixtures';
|
||||
|
||||
describe('#mutations', () => {
|
||||
describe('#ADD_AGENTS_TO_TEAM', () => {
|
||||
it('Adds team members to records', () => {
|
||||
const state = { records: {} };
|
||||
mutations[ADD_AGENTS_TO_TEAM](state, { data: teamMembers[0], teamId: 1 });
|
||||
expect(state.records).toEqual({ 1: teamMembers[0] });
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user