From 9add6892f477344bdb4d0a384f2b3dca977cc1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Bokvad=20Engar=C3=A5s?= Date: Tue, 3 Oct 2023 14:12:55 +0200 Subject: [PATCH] refactor project --- tests/branchprotection.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/branchprotection.test.ts b/tests/branchprotection.test.ts index 01f061c2..3b6fab37 100644 --- a/tests/branchprotection.test.ts +++ b/tests/branchprotection.test.ts @@ -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: { @@ -66,7 +65,7 @@ describe('BranchProtectionService', () => { getOctokitStub.returns({ rest: { repos: { - getBranchProtection: sinon.stub().throws({ + getBranchProtection: sinon.stub().rejects({ status: 403, message: 'Forbidden', }),