mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
add convenience method to pull params from config
This commit is contained in:
@@ -103,7 +103,7 @@ func TestBadScriptWASM(t *testing.T) {
|
||||
name: "no path parameter",
|
||||
params: map[string]any{},
|
||||
payload: []byte("hello"),
|
||||
errorString: "script.wasm requires a path parameter",
|
||||
errorString: "script.wasm path error: not found",
|
||||
},
|
||||
{
|
||||
name: "non-string path parameter",
|
||||
@@ -111,7 +111,7 @@ func TestBadScriptWASM(t *testing.T) {
|
||||
"path": 12345,
|
||||
},
|
||||
payload: []byte("hello"),
|
||||
errorString: "script.wasm path must be a string",
|
||||
errorString: "script.wasm path error: not a string",
|
||||
},
|
||||
{
|
||||
name: "non-string function",
|
||||
@@ -121,7 +121,7 @@ func TestBadScriptWASM(t *testing.T) {
|
||||
"function": 12345,
|
||||
},
|
||||
payload: []byte("hello"),
|
||||
errorString: "script.wasm function must be a string",
|
||||
errorString: "script.wasm function error: not a string",
|
||||
},
|
||||
{
|
||||
name: "non-boolean enableWasi",
|
||||
|
||||
Reference in New Issue
Block a user