From 24fbee9ce550f269db7efcf9cc359a9f5002a96b Mon Sep 17 00:00:00 2001 From: sagar23sj Date: Mon, 31 Oct 2022 13:05:45 +0530 Subject: [PATCH] added test for json resource marrshaling - TeamAddTeamRepoOptions --- github/teams_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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) +}