feat: Macros listing and Editor (#5606)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Fayaz Ahmed 2022-10-20 05:43:13 +05:30 committed by GitHub
parent 1fb1be3ddc
commit 22d5703b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 1287 additions and 31 deletions

View file

@ -0,0 +1,17 @@
import { emptyMacro } from '../../routes/dashboard/settings/macros/macroHelper';
describe('#emptyMacro', () => {
const defaultMacro = {
name: '',
actions: [
{
action_name: 'assign_team',
action_params: [],
},
],
visibility: 'global',
};
it('returns the default macro', () => {
expect(emptyMacro).toEqual(defaultMacro);
});
});