Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hampus-andersson-op committed Apr 15, 2024
1 parent 741930f commit cd1b158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/branchprotection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('BranchProtectionService', () => {
expect(warningStub.called).to.be.false;
expect(exportVariableStub.calledWith('numberOfReviewers', 1)).to.be.true;
});
it('should call warning when admins can byypass branch protection rules', async () => {
it('should call warning when admins can bypass branch protection rules', async () => {
getOctokitStub.returns({
rest: {
repos: {
Expand Down Expand Up @@ -73,7 +73,7 @@ describe('BranchProtectionService', () => {
});

await BranchProtectionService.getStateOfBranchProtection();
expect(warningStub.called).to.be.false;
expect(warningStub.called).to.be.true;
expect(exportVariableStub.calledWith('numberOfReviewers', 0)).to.be.true;
});
});

0 comments on commit cd1b158

Please sign in to comment.