Skip to content

Commit

Permalink
refactor project
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbokvad committed Oct 3, 2023
1 parent b27b0f8 commit 9add689
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/branchprotection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ describe('BranchProtectionService', () => {
});

it('should handle successful branch protection retrieval', async () => {
getInputStub.withArgs('PAT-token').returns('your-pat-token'); // Replace with your token
getOctokitStub.returns({
rest: {
repos: {
Expand Down Expand Up @@ -66,7 +65,7 @@ describe('BranchProtectionService', () => {
getOctokitStub.returns({
rest: {
repos: {
getBranchProtection: sinon.stub().throws({
getBranchProtection: sinon.stub().rejects({
status: 403,
message: 'Forbidden',
}),
Expand Down

0 comments on commit 9add689

Please sign in to comment.