diff --git a/github/teams_test.go b/github/teams_test.go index 523e1bcd59..d267846ecb 100644 --- a/github/teams_test.go +++ b/github/teams_test.go @@ -2244,3 +2244,17 @@ func TestListExternalGroupsOptions_Marshal(t *testing.T) { testJSONMarshal(t, u, want) } + +func TestTeamAddTeamRepoOptions_Marshal(t *testing.T) { + testJSONMarshal(t, &TeamAddTeamRepoOptions{}, "{}") + + u := &TeamAddTeamRepoOptions{ + Permission: "a", + } + + want := `{ + "permission": "a" + }` + + testJSONMarshal(t, u, want) +}