Skip to content

Commit fdba708

Browse files
committed
Add test case for JSON resource marshaling - RequiredStatusCheck
1 parent 282a391 commit fdba708

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

github/repos_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3127,3 +3127,19 @@ func TestPullRequestReviewsEnforcementUpdate_Marshal(t *testing.T) {
31273127

31283128
testJSONMarshal(t, u, want)
31293129
}
3130+
3131+
func TestRequiredStatusCheck_Marshal(t *testing.T) {
3132+
testJSONMarshal(t, &RequiredStatusCheck{}, "{}")
3133+
3134+
u := &RequiredStatusCheck{
3135+
Context: "ctx",
3136+
AppID: Int64(1),
3137+
}
3138+
3139+
want := `{
3140+
"context": "ctx",
3141+
"app_id": 1
3142+
}`
3143+
3144+
testJSONMarshal(t, u, want)
3145+
}

0 commit comments

Comments
 (0)