Browse Source

Update tests to reflect new defaults

pull/2366/head
Gabe Kangas 4 years ago
parent
commit
12838949f8
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 4
      activitypub/apmodels/actor_test.go

4
activitypub/apmodels/actor_test.go

@ -153,7 +153,7 @@ func TestMakeServiceForAccount(t *testing.T) { @@ -153,7 +153,7 @@ func TestMakeServiceForAccount(t *testing.T) {
t.Errorf("actor.Followers = %v, want %v", person.GetActivityStreamsFollowers().GetIRI().String(), expectedFollowers)
}
expectedName := "Owncast"
expectedName := "New Owncast Server"
if person.GetActivityStreamsName().Begin().GetXMLSchemaString() != expectedName {
t.Errorf("actor.Name = %v, want %v", person.GetActivityStreamsName().Begin().GetXMLSchemaString(), expectedName)
}
@ -168,7 +168,7 @@ func TestMakeServiceForAccount(t *testing.T) { @@ -168,7 +168,7 @@ func TestMakeServiceForAccount(t *testing.T) {
t.Errorf("actor.Avatar = %v, want %v", person.GetActivityStreamsIcon().At(0).GetActivityStreamsImage().GetActivityStreamsUrl().Begin().GetIRI().String(), expectedAvatar)
}
expectedSummary := "Welcome to your new Owncast server! This description can be changed in the admin. Visit https://owncast.online/docs/configuration/ to learn more."
expectedSummary := "This is a new live video streaming server powered by Owncast."
if person.GetActivityStreamsSummary().At(0).GetXMLSchemaString() != expectedSummary {
t.Errorf("actor.Summary = %v, want %v", person.GetActivityStreamsSummary().At(0).GetXMLSchemaString(), expectedSummary)
}

Loading…
Cancel
Save