diff --git a/github/repos_test.go b/github/repos_test.go index 09b5e9277ee..f79d894bdee 100644 --- a/github/repos_test.go +++ b/github/repos_test.go @@ -2367,3 +2367,17 @@ func TestAdvancedSecurity_Marshal(t *testing.T) { testJSONMarshal(t, u, want) } + +func TestAuthorizedActorsOnly_Marshal(t *testing.T) { + testJSONMarshal(t, &AuthorizedActorsOnly{}, "{}") + + u := &AuthorizedActorsOnly{ + From: Bool(true), + } + + want := `{ + "from" : true + }` + + testJSONMarshal(t, u, want) +}