Skip to content

Commit b914493

Browse files
committed
test: assert closed fallback is inert
1 parent 28079cc commit b914493

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/services/__tests__/pr-review-state-workflow.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,10 +1488,15 @@ describe("PR review-state workflow", () => {
14881488
workflowRunFallback: "match",
14891489
})
14901490

1491-
expect(result.listPullRequests).toHaveBeenCalledWith(expect.objectContaining({ state: "open" }))
1491+
expect(result.listPullRequests).toHaveBeenCalledTimes(1)
1492+
expect(result.listPullRequests).toHaveBeenCalledWith(
1493+
expect.objectContaining({ head: "Zoo-Code-Org:feature/test", state: "open" }),
1494+
)
14921495
expect(result.getPullRequest).not.toHaveBeenCalled()
14931496
expect(result.createCommitStatus).not.toHaveBeenCalled()
14941497
expect(result.addLabels).not.toHaveBeenCalled()
1498+
expect(result.removeLabel).not.toHaveBeenCalled()
1499+
expect(result.createLabel).not.toHaveBeenCalled()
14951500
})
14961501

14971502
it("resolves an unassociated fork workflow run by exact head", async () => {

0 commit comments

Comments
 (0)