@@ -178,14 +178,14 @@ func Test_GetTeams(t *testing.T) {
178
178
"teams" : map [string ]any {
179
179
"nodes" : []map [string ]any {
180
180
{
181
- "name" : "Frontend Team " ,
182
- "slug" : "frontend-team " ,
183
- "description" : "Team responsible for frontend development " ,
181
+ "name" : "team1 " ,
182
+ "slug" : "team1 " ,
183
+ "description" : "Team 1 " ,
184
184
},
185
185
{
186
- "name" : "Backend Team " ,
187
- "slug" : "backend-team " ,
188
- "description" : "Team responsible for backend development " ,
186
+ "name" : "team2 " ,
187
+ "slug" : "team2 " ,
188
+ "description" : "Team 2 " ,
189
189
},
190
190
},
191
191
},
@@ -195,9 +195,9 @@ func Test_GetTeams(t *testing.T) {
195
195
"teams" : map [string ]any {
196
196
"nodes" : []map [string ]any {
197
197
{
198
- "name" : "DevOps Team " ,
199
- "slug" : "devops-team " ,
200
- "description" : "Team responsible for DevOps and infrastructure " ,
198
+ "name" : "team3 " ,
199
+ "slug" : "team3 " ,
200
+ "description" : "Team 3 " ,
201
201
},
202
202
},
203
203
},
@@ -363,12 +363,12 @@ func Test_GetTeams(t *testing.T) {
363
363
if tc .expectedTeamsCount > 0 {
364
364
assert .Equal (t , "testorg1" , organizations [0 ].Login )
365
365
assert .Len (t , organizations [0 ].Teams .Nodes , 2 )
366
- assert .Equal (t , "Frontend Team " , organizations [0 ].Teams .Nodes [0 ].Name )
367
- assert .Equal (t , "frontend-team " , organizations [0 ].Teams .Nodes [0 ].Slug )
366
+ assert .Equal (t , "team1 " , organizations [0 ].Teams .Nodes [0 ].Name )
367
+ assert .Equal (t , "team1 " , organizations [0 ].Teams .Nodes [0 ].Slug )
368
368
369
369
assert .Equal (t , "testorg2" , organizations [1 ].Login )
370
370
assert .Len (t , organizations [1 ].Teams .Nodes , 1 )
371
- assert .Equal (t , "DevOps Team " , organizations [1 ].Teams .Nodes [0 ].Name )
371
+ assert .Equal (t , "team3 " , organizations [1 ].Teams .Nodes [0 ].Name )
372
372
}
373
373
})
374
374
}
0 commit comments