| ... | @@ -737,10 +737,10 @@ describe("when: branch has no upstream configured", () => { | ... | @@ -737,10 +737,10 @@ describe("when: branch has no upstream configured", () => { |
| 737 | }); | 737 | }); |
| 738 | | 738 | |
| 739 | describe("requiresDefaultBranchConfirmation", () => { | 739 | describe("requiresDefaultBranchConfirmation", () => { |
| 740 | it("requires confirmation only for push actions on default branch", () => { | 740 | it("requires confirmation only for direct push on default branch", () => { |
| 741 | assert.isFalse(requiresDefaultBranchConfirmation("commit", true)); | 741 | assert.isFalse(requiresDefaultBranchConfirmation("commit", true)); |
| 742 | assert.isTrue(requiresDefaultBranchConfirmation("commit_push", true)); | 742 | assert.isTrue(requiresDefaultBranchConfirmation("commit_push", true)); |
| 743 | assert.isTrue(requiresDefaultBranchConfirmation("commit_push_pr", true)); | 743 | assert.isFalse(requiresDefaultBranchConfirmation("commit_push_pr", true)); |
| 744 | assert.isFalse(requiresDefaultBranchConfirmation("commit_push", false)); | 744 | assert.isFalse(requiresDefaultBranchConfirmation("commit_push", false)); |
| 745 | }); | 745 | }); |
| 746 | }); | 746 | }); |