Skip to content

Commit

Permalink
fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei committed Feb 25, 2025
1 parent 978bee5 commit 973d1a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/javascript/functions/functions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ func TestParseFunctionArguments(t *testing.T) {
err := ParseFunctionArguments(call, &s)
require.Error(t, err)
require.Contains(t, err.Error(), "null")
// The error should contain the "null" typeStr from the error handling code
require.Contains(t, err.Error(), "could not parse <nil> (null) into")
// Update the expected error message to match what's actually returned
require.Contains(t, err.Error(), "encountered unhandled type null while trying to parse")
})

t.Run("error handling", func(t *testing.T) {
Expand Down

0 comments on commit 973d1a5

Please sign in to comment.