1
0
Fork 0
mirror of synced 2024-07-01 04:21:06 +12:00

Fixing test case broken by automation save record -> create record.

This commit is contained in:
mike12345567 2020-10-02 17:02:18 +01:00
parent 4fbccfcc92
commit 89d609bdae

View file

@ -128,14 +128,14 @@ describe("/automations", () => {
it("should setup the automation fully", () => {
let trigger = TRIGGER_DEFINITIONS["RECORD_SAVED"]
trigger.id = "wadiawdo34"
let saveAction = ACTION_DEFINITIONS["SAVE_RECORD"]
saveAction.inputs.record = {
let createAction = ACTION_DEFINITIONS["CREATE_RECORD"]
createAction.inputs.record = {
name: "{{trigger.name}}",
description: "{{trigger.description}}"
}
saveAction.id = "awde444wk"
createAction.id = "awde444wk"
TEST_AUTOMATION.definition.steps.push(saveAction)
TEST_AUTOMATION.definition.steps.push(createAction)
TEST_AUTOMATION.definition.trigger = trigger
})