chore: Allow admins to choose the agent bot from the UI (#5895)

This commit is contained in:
Pranav Raj S
2022-11-18 08:54:32 -08:00
committed by GitHub
parent 33aacb3401
commit 16bfd68d95
11 changed files with 261 additions and 958 deletions

View File

@@ -41,4 +41,14 @@ describe('#mutations', () => {
expect(state.records).toEqual([agentBotRecords[0]]);
});
});
describe('#SET_AGENT_BOT_INBOX', () => {
it('set agent bot in the object', () => {
const state = { agentBotInbox: {} };
mutations[types.SET_AGENT_BOT_INBOX](state, {
agentBotId: 2,
inboxId: 3,
});
expect(state.agentBotInbox).toEqual({ 3: 2 });
});
});
});