chore: Improve macros stability (#5700)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Fayaz Ahmed
2022-10-25 12:19:19 +05:30
committed by GitHub
parent c3ec1d4f8a
commit 06e2219110
8 changed files with 55 additions and 32 deletions

View File

@@ -58,6 +58,7 @@ describe('#actions', () => {
id: 1,
messages: [],
meta: { sender: { id: 1, name: 'john-doe' } },
labels: ['support'],
};
actions.updateConversation(
{ commit, rootState: { route: { name: 'home' } }, dispatch },
@@ -67,6 +68,10 @@ describe('#actions', () => {
[types.UPDATE_CONVERSATION, conversation],
]);
expect(dispatch.mock.calls).toEqual([
[
'conversationLabels/setConversationLabel',
{ id: 1, data: ['support'] },
],
[
'contacts/setContact',
{