Skip to content

Commit

Permalink
chore: gofmt main_test.go (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio authored Mar 19, 2024
1 parent 427e777 commit 78dac8e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2080,8 +2080,8 @@ func TestSoftwareEndpoints(t *testing.T) {
},
{
description: "PATCH a software resource with JSON Patch - replace",
query: "PATCH /v1/software/59803fb7-8eec-4fe5-a354-8926009c364a",
body: `[{"op": "replace", "path": "/publiccodeYml", "value": "new publiccode data"}]`,
query: "PATCH /v1/software/59803fb7-8eec-4fe5-a354-8926009c364a",
body: `[{"op": "replace", "path": "/publiccodeYml", "value": "new publiccode data"}]`,
headers: map[string][]string{
"Authorization": {goodToken},
"Content-Type": {"application/json-patch+json"},
Expand Down Expand Up @@ -2114,8 +2114,8 @@ func TestSoftwareEndpoints(t *testing.T) {
},
{
description: "PATCH a software resource with JSON Patch - add",
query: "PATCH /v1/software/59803fb7-8eec-4fe5-a354-8926009c364a",
body: `[{"op": "add", "path": "/aliases/-", "value": "https://18-c.example.org"}]`,
query: "PATCH /v1/software/59803fb7-8eec-4fe5-a354-8926009c364a",
body: `[{"op": "add", "path": "/aliases/-", "value": "https://18-c.example.org"}]`,
headers: map[string][]string{
"Authorization": {goodToken},
"Content-Type": {"application/json-patch+json"},
Expand Down Expand Up @@ -2149,8 +2149,8 @@ func TestSoftwareEndpoints(t *testing.T) {
},
{
description: "PATCH a software resource with JSON Patch as Content-Type, but non JSON Patch payload",
query: "PATCH /v1/software/59803fb7-8eec-4fe5-a354-8926009c364a",
body: `{"publiccodeYml": "publiccodedata", "url": "https://software-new.example.org"}`,
query: "PATCH /v1/software/59803fb7-8eec-4fe5-a354-8926009c364a",
body: `{"publiccodeYml": "publiccodedata", "url": "https://software-new.example.org"}`,
headers: map[string][]string{
"Authorization": {goodToken},
"Content-Type": {"application/json-patch+json"},
Expand Down

0 comments on commit 78dac8e

Please sign in to comment.