mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 05:36:16 +00:00
omit linting maybe?
This commit is contained in:
parent
ee71f86432
commit
ca0a53bf5f
|
@ -96,10 +96,10 @@ func Test_LikeUnmarshalJSON(t *testing.T) {
|
||||||
},
|
},
|
||||||
wantErr: nil,
|
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"`),
|
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{},
|
want: &ForgeLike{},
|
||||||
wantErr: fmt.Errorf("cannot parse JSON:"),
|
wantErr: fmt.Errorf("cannot parse JSON:"), //no-lint
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue