generated from VLADIMIR/template
fix
This commit is contained in:
@@ -61,6 +61,15 @@ func TestTeamRegistrationHandler(t *testing.T) {
|
||||
if strings.Contains(res.Body.String(), "private database detail") {
|
||||
t.Fatal("private error exposed")
|
||||
}
|
||||
if tc.name == "malformed" && !strings.Contains(res.Body.String(), "unexpected EOF") {
|
||||
t.Fatalf("malformed JSON reason missing: %s", res.Body.String())
|
||||
}
|
||||
if tc.name == "unknown field" && !strings.Contains(res.Body.String(), "unknown field") {
|
||||
t.Fatalf("unknown field reason missing: %s", res.Body.String())
|
||||
}
|
||||
if tc.name == "extra object" && !strings.Contains(res.Body.String(), "лишние данные") {
|
||||
t.Fatalf("extra data reason missing: %s", res.Body.String())
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user