Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 01:44:24 +01:00

omit linting maybe?

This commit is contained in:
Michael Jerger 2024-05-04 17:58:54 +02:00
parent ee71f86432
commit ca0a53bf5f

View file

@ -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
},
}