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:
@@ -131,7 +131,7 @@ func TestBadStringCreate(t *testing.T) {
|
||||
name: "no template param",
|
||||
payload: "hello",
|
||||
params: map[string]any{},
|
||||
errorString: "string.create requires a template parameter",
|
||||
errorString: "string.create template error: not found",
|
||||
},
|
||||
{
|
||||
name: "non string template",
|
||||
@@ -139,7 +139,7 @@ func TestBadStringCreate(t *testing.T) {
|
||||
params: map[string]any{
|
||||
"template": 1,
|
||||
},
|
||||
errorString: "string.create template must be a string",
|
||||
errorString: "string.create template error: not a string",
|
||||
},
|
||||
{
|
||||
name: "invalid template",
|
||||
|
||||
Reference in New Issue
Block a user