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>
This commit is contained in:
@@ -25,4 +25,28 @@ describe('#actions', () => {
|
||||
]);
|
||||
});
|
||||
});
|
||||
describe('#setSelectedConversationIds', () => {
|
||||
it('sends correct actions if API is success', async () => {
|
||||
await actions.setSelectedConversationIds({ commit }, payload.ids);
|
||||
expect(commit.mock.calls).toEqual([
|
||||
[types.default.SET_SELECTED_CONVERSATION_IDS, payload.ids],
|
||||
]);
|
||||
});
|
||||
});
|
||||
describe('#removeSelectedConversationIds', () => {
|
||||
it('sends correct actions if API is success', async () => {
|
||||
await actions.removeSelectedConversationIds({ commit }, payload.ids);
|
||||
expect(commit.mock.calls).toEqual([
|
||||
[types.default.REMOVE_SELECTED_CONVERSATION_IDS, payload.ids],
|
||||
]);
|
||||
});
|
||||
});
|
||||
describe('#clearSelectedConversationIds', () => {
|
||||
it('sends correct actions if API is success', async () => {
|
||||
await actions.clearSelectedConversationIds({ commit });
|
||||
expect(commit.mock.calls).toEqual([
|
||||
[types.default.CLEAR_SELECTED_CONVERSATION_IDS],
|
||||
]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user