Skip to content

Commit 4e394ef

Browse files
authored
Add test case for JSON resource marshaling (#2551)
1 parent 377f63f commit 4e394ef

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

github/teams_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,3 +2244,17 @@ func TestListExternalGroupsOptions_Marshal(t *testing.T) {
22442244

22452245
testJSONMarshal(t, u, want)
22462246
}
2247+
2248+
func TestTeamAddTeamRepoOptions_Marshal(t *testing.T) {
2249+
testJSONMarshal(t, &TeamAddTeamRepoOptions{}, "{}")
2250+
2251+
u := &TeamAddTeamRepoOptions{
2252+
Permission: "a",
2253+
}
2254+
2255+
want := `{
2256+
"permission": "a"
2257+
}`
2258+
2259+
testJSONMarshal(t, u, want)
2260+
}

0 commit comments

Comments
 (0)