From b6ecf3e3fd2c9725e4b2aab00e6aff550ea46c36 Mon Sep 17 00:00:00 2001 From: hampus-andersson-op Date: Mon, 18 Mar 2024 14:50:46 +0100 Subject: [PATCH] Fix tests --- tests/branchprotection.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/branchprotection.test.ts b/tests/branchprotection.test.ts index 6e6c801c..7bf7b5cf 100644 --- a/tests/branchprotection.test.ts +++ b/tests/branchprotection.test.ts @@ -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; }); });