@@ -277,7 +277,7 @@ func TestTeamsService_EditTeamByID(t *testing.T) {
277
277
func TestTeamsService_EditTeamByID_RemoveParent (t * testing.T ) {
278
278
client , mux , _ := setup (t )
279
279
280
- input := NewTeam {Name : "n" , Privacy : String ("closed" )}
280
+ input := NewTeam {Name : "n" , NotificationSetting : String ( "notifications_enabled" ), Privacy : String ("closed" )}
281
281
var body string
282
282
283
283
mux .HandleFunc ("/organizations/1/team/1" , func (w http.ResponseWriter , r * http.Request ) {
@@ -308,7 +308,7 @@ func TestTeamsService_EditTeamByID_RemoveParent(t *testing.T) {
308
308
t .Errorf ("Teams.EditTeamByID returned %+v, want %+v" , team , want )
309
309
}
310
310
311
- if want := `{"name":"n","parent_team_id":null,"privacy":"closed"}` + "\n " ; body != want {
311
+ if want := `{"name":"n","parent_team_id":null,"notification_setting":"notifications_enabled"," privacy":"closed"}` + "\n " ; body != want {
312
312
t .Errorf ("Teams.EditTeamByID body = %+v, want %+v" , body , want )
313
313
}
314
314
}
@@ -359,7 +359,7 @@ func TestTeamsService_EditTeamBySlug(t *testing.T) {
359
359
func TestTeamsService_EditTeamBySlug_RemoveParent (t * testing.T ) {
360
360
client , mux , _ := setup (t )
361
361
362
- input := NewTeam {Name : "n" , Privacy : String ("closed" )}
362
+ input := NewTeam {Name : "n" , NotificationSetting : String ( "notifications_disabled" ), Privacy : String ("closed" )}
363
363
var body string
364
364
365
365
mux .HandleFunc ("/orgs/o/teams/s" , func (w http.ResponseWriter , r * http.Request ) {
@@ -390,7 +390,7 @@ func TestTeamsService_EditTeamBySlug_RemoveParent(t *testing.T) {
390
390
t .Errorf ("Teams.EditTeam returned %+v, want %+v" , team , want )
391
391
}
392
392
393
- if want := `{"name":"n","parent_team_id":null,"privacy":"closed"}` + "\n " ; body != want {
393
+ if want := `{"name":"n","parent_team_id":null,"notification_setting":"notifications_disabled"," privacy":"closed"}` + "\n " ; body != want {
394
394
t .Errorf ("Teams.EditTeam body = %+v, want %+v" , body , want )
395
395
}
396
396
}
0 commit comments