mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-02 02:53:43 +00:00
feat: Update notifications and unread count in real time (#4261)
This commit is contained in:
@@ -90,4 +90,12 @@ describe('#actions', () => {
|
||||
await expect(actions.readAll({ commit })).rejects.toThrow(Error);
|
||||
});
|
||||
});
|
||||
describe('#addNotification', () => {
|
||||
it('sends correct actions if API is success', async () => {
|
||||
await actions.addNotification({ commit }, { data: 1 });
|
||||
expect(commit.mock.calls).toEqual([
|
||||
[types.ADD_NOTIFICATION, { data: 1 }],
|
||||
]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user