We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103b67c commit cbba2b0Copy full SHA for cbba2b0
github/users_test.go
@@ -407,3 +407,23 @@ func TestHovercard_Marshal(t *testing.T) {
407
408
testJSONMarshal(t, h, want)
409
}
410
+
411
+func TestUserListOptions_Marshal(t *testing.T) {
412
+ testJSONMarshal(t, &UserListOptions{}, "{}")
413
414
+ u := &UserListOptions{
415
+ Since: int64(1900),
416
+ ListOptions: ListOptions{
417
+ Page: int(1),
418
+ PerPage: int(10),
419
+ },
420
+ }
421
422
+ want := `{
423
+ "since" : 1900,
424
+ "page": 1,
425
+ "perPage": 10
426
+ }`
427
428
+ testJSONMarshal(t, u, want)
429
+}
0 commit comments