forked from forgejo/forgejo
Use @mariusor's suggestions for idiomatic go-ap usage
This commit is contained in:
parent
f7da251c5d
commit
cf6aed386d
2 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ func TestActivityPubPerson(t *testing.T) {
|
|||
err := person.UnmarshalJSON(body)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Equal(t, ap.ActivityVocabularyType("Person"), person.Type)
|
||||
assert.Equal(t, ap.PersonType, person.Type)
|
||||
assert.Equal(t, username, person.Name.String())
|
||||
keyID := person.GetID().String()
|
||||
assert.Regexp(t, fmt.Sprintf("activitypub/user/%s$", username), keyID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue