mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
add convenience method to pull params from config
This commit is contained in:
@@ -111,13 +111,13 @@ func TestBadStringSplit(t *testing.T) {
|
||||
name: "missing separator param",
|
||||
payload: "part1,part2,part3",
|
||||
params: map[string]any{},
|
||||
errorString: "string.split requires a separator",
|
||||
errorString: "string.split separator error: not found",
|
||||
},
|
||||
{
|
||||
name: "non-string separator param",
|
||||
payload: "part1,part2,part3",
|
||||
params: map[string]any{"separator": 123},
|
||||
errorString: "string.split separator must be a string",
|
||||
errorString: "string.split separator error: not a string",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user