more formatting fixes

This commit is contained in:
Denys Konovalov
2024-01-21 15:39:55 +01:00
committed by dineshsalunke
parent c4f832c12a
commit 159ec84d81
2 changed files with 14 additions and 27 deletions

View File

@@ -157,11 +157,7 @@ func TestAPIUpdateProject(t *testing.T) {
token := getUserToken(t, "user2", auth_model.AccessTokenScopeWriteUser, auth_model.AccessTokenScopeWriteIssue)
link, _ := url.Parse(fmt.Sprintf("/api/v1/projects/%d", 1))
link.RawQuery = url.Values{"token": {token}}.Encode()
req := NewRequestWithJSON(t, "PATCH", link.String(), &api.UpdateProjectPayload{
Title: "First project updated",
})
req := NewRequestWithJSON(t, "PATCH", link.String(), &api.UpdateProjectPayload{Title: "First project updated"}).AddTokenAuth(token)
var apiProject *api.Project