Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hampus-andersson-op committed Mar 18, 2024
1 parent 970bb06 commit b6ecf3e
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 @@ -66,14 +66,14 @@ describe('BranchProtectionService', () => {
repos: {
getBranchProtection: sinon.stub().rejects({
status: 404,
message: 'Forbidden',
message: 'Branch not protected',
}),
},
},
});

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

0 comments on commit b6ecf3e

Please sign in to comment.