feat: complete current GoChat updates
This commit is contained in:
@@ -20,7 +20,7 @@ describe('#actions', () => {
|
||||
});
|
||||
it('sends correct actions if API is error', async () => {
|
||||
axios.get.mockRejectedValue({ message: 'Incorrect header' });
|
||||
await actions.getCustomRole({ commit });
|
||||
await expect(actions.getCustomRole({ commit })).rejects.toThrow(Error);
|
||||
expect(commit.mock.calls).toEqual([
|
||||
[types.default.SET_CUSTOM_ROLE_UI_FLAG, { fetchingList: true }],
|
||||
[types.default.SET_CUSTOM_ROLE_UI_FLAG, { fetchingList: false }],
|
||||
@@ -80,7 +80,7 @@ describe('#actions', () => {
|
||||
expect(commit.mock.calls).toEqual([
|
||||
[types.default.SET_CUSTOM_ROLE_UI_FLAG, { deletingItem: true }],
|
||||
[types.default.DELETE_CUSTOM_ROLE, 1],
|
||||
[types.default.SET_CUSTOM_ROLE_UI_FLAG, { deletingItem: true }],
|
||||
[types.default.SET_CUSTOM_ROLE_UI_FLAG, { deletingItem: false }],
|
||||
]);
|
||||
});
|
||||
it('sends correct actions if API is error', async () => {
|
||||
@@ -90,7 +90,7 @@ describe('#actions', () => {
|
||||
);
|
||||
expect(commit.mock.calls).toEqual([
|
||||
[types.default.SET_CUSTOM_ROLE_UI_FLAG, { deletingItem: true }],
|
||||
[types.default.SET_CUSTOM_ROLE_UI_FLAG, { deletingItem: true }],
|
||||
[types.default.SET_CUSTOM_ROLE_UI_FLAG, { deletingItem: false }],
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user