mirror of https://github.com/go-gitea/gitea.git
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