Chatwoot/app/javascript/dashboard/store/modules/specs/bulkActions/mutations.spec.js

13 lines
398 B
JavaScript
Raw Permalink Normal View History

import types from '../../../mutation-types';
import { mutations } from '../../bulkActions';
describe('#mutations', () => {
describe('#toggleUiFlag', () => {
it('set update flags', () => {
const state = { uiFlags: { isUpdating: false } };
mutations[types.SET_BULK_ACTIONS_FLAG](state, { isUpdating: true });
expect(state.uiFlags.isUpdating).toEqual(true);
});
});
});