Skip to content

Commit

Permalink
Add TestPageEvaluateMappingError.void
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Nov 26, 2024
1 parent 094feea commit 5aa78f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ func TestPageEvaluateMappingError(t *testing.T) {
script: "(6)",
wantErr: "Given expression does not evaluate to a function",
},
{
name: "void",
script: "",
wantErr: "evaluate requires a page function",
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 5aa78f5

Please sign in to comment.