Skip to content

Commit

Permalink
Add test case for JSON resource marshaling (#2551)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar23sj committed Oct 31, 2022
1 parent 377f63f commit 4e394ef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions github/teams_test.go
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 4e394ef

Please sign in to comment.