Files
chatwoot/app/javascript/dashboard/store/modules/specs/bulkActions/getters.spec.js
Sivin Varghese 5138a0ad32 feat: Adds support for all snooze option in bulk actions (#9361)
* feat: Add support for bulk snooze until

* feat: Adds support for all snooze option in bulk actions

* chore: Adds comment

* chore: Review fixes

* chore: Minor fix

* chore: Minor fix

* chore: Review fixes

* chore: yarn changes

* fix: terminal waring

* chore: Adds spec

* Update conversationHotKeys.js

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2024-05-09 19:27:31 +05:30

21 lines
465 B
JavaScript

import { getters } from '../../bulkActions';
describe('#getters', () => {
it('getUIFlags', () => {
const state = {
uiFlags: {
isUpdating: false,
},
};
expect(getters.getUIFlags(state)).toEqual({
isUpdating: false,
});
});
it('getSelectedConversationIds', () => {
const state = {
selectedConversationIds: [1, 2, 3],
};
expect(getters.getSelectedConversationIds(state)).toEqual([1, 2, 3]);
});
});