feat: Add an option to edit webhook URL (#2316)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -30,4 +30,14 @@ describe('#mutations', () => {
|
||||
expect(state.records).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#UPDATE_WEBHOOK', () => {
|
||||
it('update webhook ', () => {
|
||||
const state = {
|
||||
records: [webhooks[0]],
|
||||
};
|
||||
mutations[types.default.UPDATE_WEBHOOK](state, webhooks[0]);
|
||||
expect(state.records[0].url).toEqual('https://1.chatwoot.com');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user