Skip to content

Commit

Permalink
added test for json resource marrshaling - TeamAddTeamRepoOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar23sj committed Oct 31, 2022
1 parent 282a391 commit 24fbee9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions github/teams_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 24fbee9

Please # to comment.