Skip to content

Commit

Permalink
chore: add tests to cover ways others are using call expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
joerdav committed Jan 12, 2024
1 parent 914bc73 commit 67398a3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions parser/v2/templelementparser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,33 @@ func TestTemplElementExpressionParser(t *testing.T) {
},
},
},
{
name: "templelement: simple multiline call",
input: `@Other_Component(
p.Test,
"something" + "else",
)` + "\n",
expected: TemplElementExpression{
Expression: Expression{
Value: `Other_Component(
p.Test,
"something" + "else",
)`,
Range: Range{
From: Position{
Index: 1,
Line: 0,
Col: 1,
},
To: Position{
Index: 60,
Line: 3,
Col: 4,
},
},
},
},
},
{
name: "templelement: simple, block with text",
input: `@Other(p.Test) {
Expand Down

0 comments on commit 67398a3

Please sign in to comment.