|
|
@ -162,7 +162,7 @@ describe("/automations", () => { |
|
|
await createAutomation() |
|
|
await createAutomation() |
|
|
const res = await request |
|
|
const res = await request |
|
|
.post(`/api/automations/${automation._id}/trigger`) |
|
|
.post(`/api/automations/${automation._id}/trigger`) |
|
|
.send({ name: "Test" }) |
|
|
.send({ name: "Test", description: "TEST" }) |
|
|
.set(defaultHeaders(app._id, instance._id)) |
|
|
.set(defaultHeaders(app._id, instance._id)) |
|
|
.expect('Content-Type', /json/) |
|
|
.expect('Content-Type', /json/) |
|
|
.expect(200) |
|
|
.expect(200) |
|
|
|