diff --git a/github/secret_scanning_test.go b/github/secret_scanning_test.go index 7898d29a38..1c8ad82bfc 100644 --- a/github/secret_scanning_test.go +++ b/github/secret_scanning_test.go @@ -595,3 +595,19 @@ func TestSecretScanningAlertLocationDetails_Marshal(t *testing.T) { testJSONMarshal(t, u, want) } + +func TestSecretScanningAlertUpdateOptions_Marshal(t *testing.T) { + testJSONMarshal(t, &SecretScanningAlertUpdateOptions{}, `{}`) + + u := &SecretScanningAlertUpdateOptions{ + State: "open", + Resolution: String("false_positive"), + } + + want := `{ + "state": "open", + "resolution": "false_positive" + }` + + testJSONMarshal(t, u, want) +}