Skip to content

Commit

Permalink
Adds small check to make sure that Action.FunctionRef is unmarshalled…
Browse files Browse the repository at this point in the history
… into struct (#184)

Signed-off-by: Spolti <filippespolti@gmail.com>
  • Loading branch information
spolti authored Aug 25, 2023
1 parent 796270c commit cc4ca42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,9 @@ states:

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

})
Expand Down

0 comments on commit cc4ca42

Please sign in to comment.