This commit is contained in:
Michael Jerger 2024-01-14 13:03:51 +01:00
commit 1b35bd2911
4 changed files with 11 additions and 6 deletions

View file

@ -166,7 +166,7 @@ func Test_PersonMarshalJSON(t *testing.T) {
sut.PreferredUsername = ap.NaturalLanguageValuesNew()
sut.PreferredUsername.Set("en", ap.Content("MaxMuster"))
result, _ := sut.MarshalJSON()
if "{\"type\":\"Person\",\"preferredUsername\":\"MaxMuster\"}" != string(result) {
if string(result) != "{\"type\":\"Person\",\"preferredUsername\":\"MaxMuster\"}" {
t.Errorf("MarshalJSON() was = %q", result)
}
}