Chatwoot/app/javascript/widget/store/modules/specs/message/mutations.spec.js

12 lines
326 B
JavaScript
Raw Normal View History

import { mutations } from '../../message';
describe('#mutations', () => {
describe('#toggleUpdateStatus', () => {
it('set update flags', () => {
const state = { uiFlags: { status: '' } };
mutations.toggleUpdateStatus(state, 'sent');
expect(state.uiFlags.isUpdating).toEqual('sent');
});
});
});