Skip to content

Commit 392b7ea

Browse files
Adds test cases for JSON resources marshaling (#2176)
1 parent 25f8b0c commit 392b7ea

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

github/repos_test.go

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

24132413
testJSONMarshal(t, u, want)
24142414
}
2415+
2416+
func TestAuthorizedActorsOnly_Marshal(t *testing.T) {
2417+
testJSONMarshal(t, &AuthorizedActorsOnly{}, "{}")
2418+
2419+
u := &AuthorizedActorsOnly{
2420+
From: Bool(true),
2421+
}
2422+
2423+
want := `{
2424+
"from" : true
2425+
}`
2426+
2427+
testJSONMarshal(t, u, want)
2428+
}

0 commit comments

Comments
 (0)