Skip to content

Commit 003d020

Browse files
committed
Adds small check to make sure that Action.FunctionRef is unmarshalled into struct
Signed-off-by: Spolti <filippespolti@gmail.com>
1 parent 796270c commit 003d020

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

parser/parser_test.go

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy