mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:15:43 +01:00
omit linting next try
This commit is contained in:
parent
ca0a53bf5f
commit
1a07db1a40
1 changed files with 3 additions and 1 deletions
|
@ -84,6 +84,7 @@ func Test_LikeUnmarshalJSON(t *testing.T) {
|
||||||
wantErr error
|
wantErr error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//revive:disable
|
||||||
tests := map[string]testPair{
|
tests := map[string]testPair{
|
||||||
"with ID": {
|
"with ID": {
|
||||||
item: []byte(`{"type":"Like","actor":"https://repo.prod.meissa.de/api/activitypub/user-id/1","object":"https://codeberg.org/api/activitypub/repository-id/1"}`),
|
item: []byte(`{"type":"Like","actor":"https://repo.prod.meissa.de/api/activitypub/user-id/1","object":"https://codeberg.org/api/activitypub/repository-id/1"}`),
|
||||||
|
@ -99,9 +100,10 @@ func Test_LikeUnmarshalJSON(t *testing.T) {
|
||||||
"invalid": {
|
"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:"), //no-lint
|
wantErr: fmt.Errorf("cannot parse JSON:"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
//revive:enable
|
||||||
|
|
||||||
for name, test := range tests {
|
for name, test := range tests {
|
||||||
t.Run(name, func(t *testing.T) {
|
t.Run(name, func(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue