diff --git a/tests/page_test.go b/tests/page_test.go index 3bdba1b7a..3fc75de73 100644 --- a/tests/page_test.go +++ b/tests/page_test.go @@ -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 {