@@ -277,7 +277,7 @@ func TestTeamsService_EditTeamByID(t *testing.T) {
277277func TestTeamsService_EditTeamByID_RemoveParent (t * testing.T ) {
278278 client , mux , _ := setup (t )
279279
280- input := NewTeam {Name : "n" , Privacy : String ("closed" )}
280+ input := NewTeam {Name : "n" , NotificationSetting : String ( "notifications_enabled" ), Privacy : String ("closed" )}
281281 var body string
282282
283283 mux .HandleFunc ("/organizations/1/team/1" , func (w http.ResponseWriter , r * http.Request ) {
@@ -308,7 +308,7 @@ func TestTeamsService_EditTeamByID_RemoveParent(t *testing.T) {
308308 t .Errorf ("Teams.EditTeamByID returned %+v, want %+v" , team , want )
309309 }
310310
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 {
312312 t .Errorf ("Teams.EditTeamByID body = %+v, want %+v" , body , want )
313313 }
314314}
@@ -359,7 +359,7 @@ func TestTeamsService_EditTeamBySlug(t *testing.T) {
359359func TestTeamsService_EditTeamBySlug_RemoveParent (t * testing.T ) {
360360 client , mux , _ := setup (t )
361361
362- input := NewTeam {Name : "n" , Privacy : String ("closed" )}
362+ input := NewTeam {Name : "n" , NotificationSetting : String ( "notifications_disabled" ), Privacy : String ("closed" )}
363363 var body string
364364
365365 mux .HandleFunc ("/orgs/o/teams/s" , func (w http.ResponseWriter , r * http.Request ) {
@@ -390,7 +390,7 @@ func TestTeamsService_EditTeamBySlug_RemoveParent(t *testing.T) {
390390 t .Errorf ("Teams.EditTeam returned %+v, want %+v" , team , want )
391391 }
392392
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 {
394394 t .Errorf ("Teams.EditTeam body = %+v, want %+v" , body , want )
395395 }
396396}
0 commit comments