Refactor test case for member update to remove unnecessary whitespace
- Cleaned up the `TestMemberUpdateRobot` function by removing redundant blank lines, improving code readability and maintainability.
This commit is contained in:
parent
1e01ed768e
commit
26b690246d
1 changed files with 2 additions and 2 deletions
|
|
@ -1907,13 +1907,13 @@ func TestMemberUpdateRobot(t *testing.T) {
|
|||
for _, tc := range testCases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
memberID, _ := tc.setupFunc()
|
||||
|
||||
|
||||
// Use non-existent team ID for the specific test case
|
||||
targetTeamID := teamID
|
||||
if tc.name == "update robot in non-existent team" {
|
||||
targetTeamID = "non-existent-team-id"
|
||||
}
|
||||
|
||||
|
||||
requestURL := serverURL + baseURL + "/user/teams/" + targetTeamID + "/members/robots/" + memberID
|
||||
|
||||
var req *http.Request
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue