Skip to content

Commit bdef664

Browse files
committed
test(review): use falsy pr number for object-payload null case
Satisfy exactOptionalPropertyTypes by asserting a present-but-falsy pr (0) rather than an explicit undefined property, which tsc rejects.
1 parent 59bf627 commit bdef664

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/unit/preview-url.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ describe("deploymentStatusToPreview branch logic (#9292)", () => {
561561
expect(
562562
deploymentStatusToPreview({
563563
deployment_status: successStatus,
564-
deployment: { payload: { pr: undefined } },
564+
deployment: { payload: { pr: 0 } },
565565
}),
566566
).toBeNull();
567567
expect(

0 commit comments

Comments
 (0)