1ef8d03e18
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
26 lines
607 B
JavaScript
26 lines
607 B
JavaScript
import * as types from '../../../mutation-types';
|
|
import { mutations } from '../../integrations';
|
|
|
|
describe('#mutations', () => {
|
|
describe('#GET_INTEGRATIONS', () => {
|
|
it('set integrations records', () => {
|
|
const state = { records: [] };
|
|
mutations[types.default.SET_INTEGRATIONS](state, [
|
|
{
|
|
id: 1,
|
|
name: 'test1',
|
|
logo: 'test',
|
|
enabled: true,
|
|
},
|
|
]);
|
|
expect(state.records).toEqual([
|
|
{
|
|
id: 1,
|
|
name: 'test1',
|
|
logo: 'test',
|
|
enabled: true,
|
|
},
|
|
]);
|
|
});
|
|
});
|
|
});
|