mirror of
https://github.com/go-gitea/gitea
synced 2024-11-04 17:24:26 +00:00
Assert if json.Unmarshal succeeds
Signed-off-by: Anthony Wang <ta180m@pm.me>
This commit is contained in:
parent
d75809aeee
commit
ebef769703
@ -36,6 +36,7 @@ func TestActivityPubPerson(t *testing.T) {
|
||||
assert.Contains(t, resp.Body.String(), "@context")
|
||||
var m map[string]interface{}
|
||||
err := json.Unmarshal(resp.Body.Bytes(), &m)
|
||||
assert.Equal(t, err, nil)
|
||||
|
||||
var person vocab.ActivityStreamsPerson
|
||||
resolver, _ := streams.NewJSONResolver(func(c context.Context, p vocab.ActivityStreamsPerson) error {
|
||||
|
Loading…
Reference in New Issue
Block a user