mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
allow json.decode to take byte slice and string
This commit is contained in:
@@ -99,9 +99,9 @@ func TestBadJsonDecode(t *testing.T) {
|
||||
errorString string
|
||||
}{
|
||||
{
|
||||
name: "non-string input",
|
||||
payload: []byte("hello"),
|
||||
errorString: "json.decode processor only accepts a string",
|
||||
name: "non-string or byte input",
|
||||
payload: 123,
|
||||
errorString: "json.decode can only process a string or []byte",
|
||||
},
|
||||
{
|
||||
name: "invalid json",
|
||||
|
||||
Reference in New Issue
Block a user