Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rahulkarmore/go-github in…
Browse files Browse the repository at this point in the history
…to Team_Test_ExternalGroupMember
  • Loading branch information
rahulkarmore committed Oct 28, 2022
2 parents 220f1ad + fd784db commit 9cb3a4e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions github/repos_traffic_test.go
Expand Up @@ -308,3 +308,17 @@ func TestTrafficData_Marshal(t *testing.T) {

testJSONMarshal(t, u, want)
}

func TestTrafficBreakdownOptions_Marshal(t *testing.T) {
testJSONMarshal(t, &TrafficBreakdownOptions{}, "{}")

u := &TrafficBreakdownOptions{
Per: "day",
}

want := `{
"per": "day"
}`

testJSONMarshal(t, u, want)
}

0 comments on commit 9cb3a4e

Please sign in to comment.