(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestRunJavascript_error(t *testing.T) { |
| 23 | t.Parallel() |
| 24 | tool := &codeModeTool{} |
| 25 | |
| 26 | result, err := tool.runJavascript(t.Context(), `==`) |
| 27 | require.NoError(t, err) |
| 28 | |
| 29 | assert.Equal(t, "SyntaxError: SyntaxError: (anonymous): Line 2:1 Unexpected token == (and 2 more errors)", result.Value) |
| 30 | assert.Empty(t, result.StdOut) |
| 31 | assert.Empty(t, result.StdErr) |
| 32 | } |
| 33 | |
| 34 | func TestRunJavascript_console(t *testing.T) { |
| 35 | t.Parallel() |
nothing calls this directly
no test coverage detected