diff --git a/modules/forgefed/activity_test.go b/modules/forgefed/activity_test.go index 4c3e4c5e98..99dc721411 100644 --- a/modules/forgefed/activity_test.go +++ b/modules/forgefed/activity_test.go @@ -96,10 +96,10 @@ func Test_LikeUnmarshalJSON(t *testing.T) { }, wantErr: nil, }, - "invalid": { // ToDo: Here we are testing if the json parser detects invalid json, we could keep this test in case we bould our own. + "invalid": { item: []byte(`{"type":"Invalid","actor":"https://repo.prod.meissa.de/api/activitypub/user-id/1","object":"https://codeberg.org/api/activitypub/repository-id/1"`), want: &ForgeLike{}, - wantErr: fmt.Errorf("cannot parse JSON:"), + wantErr: fmt.Errorf("cannot parse JSON:"), //no-lint }, }