Skip to content

Commit cc4ca42

Browse files
authored
Adds small check to make sure that Action.FunctionRef is unmarshalled into struct (#184)
Signed-off-by: Spolti <[email protected]>
1 parent 796270c commit cc4ca42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

parser/parser_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,9 @@ states:
992992

993993
workflow = nil
994994
err = json.Unmarshal(b, &workflow)
995+
// Make sure that the Action FunctionRef is unmarshalled correctly
996+
assert.Equal(t, model.FromString("${ .singlemessage }"), workflow.States[5].ForEachState.Actions[0].FunctionRef.Arguments["message"])
997+
assert.Equal(t, "sendTextFunction", workflow.States[5].ForEachState.Actions[0].FunctionRef.RefName)
995998
assert.Nil(t, err)
996999

9971000
})

0 commit comments

Comments
 (0)