We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ce731 commit f5ba524Copy full SHA for f5ba524
response_test.go
@@ -43,8 +43,8 @@ func TestMarshalling(t *testing.T) {
43
re.SetError(fmt.Errorf("Oops!"), cmdkit.ErrClient)
44
45
output = buf.String()
46
- if removeWhitespace(output) != "{\"Message\":\"Oops!\",\"Code\":1}" {
47
- t.Log("expected: {\"Message\":\"Oops!\",\"Code\":1}")
+ if removeWhitespace(output) != `{"Message":"Oops!","Code":1,"Type":"error"}` {
+ t.Log(`expected: {"Message":"Oops!","Code":1,"Type":"error"}`)
48
t.Log("got:", removeWhitespace(buf.String()))
49
t.Error("Incorrect JSON output")
50
}
0 commit comments