mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-10 10:44:06 +09:00
Don't show non-comments in comments API (#2001)
This commit is contained in:
@ -252,3 +252,8 @@ func MakeRequest(req *http.Request) *TestResponse {
|
||||
Headers: respWriter.Headers,
|
||||
}
|
||||
}
|
||||
|
||||
func DecodeJSON(t testing.TB, resp *TestResponse, v interface{}) {
|
||||
decoder := json.NewDecoder(bytes.NewBuffer(resp.Body))
|
||||
assert.NoError(t, decoder.Decode(v))
|
||||
}
|
||||
|
Reference in New Issue
Block a user