Remove unnecessary sinon restore calls

This commit is contained in:
Henry Mercer
2026-05-13 18:53:33 +01:00
parent 93d215d874
commit 3c8c0ae6cb
5 changed files with 38 additions and 121 deletions
+2 -5
View File
@@ -73,10 +73,10 @@ const testShouldPerformDiffInformedAnalysis = makeMacro({
[Feature.DiffInformedQueries]: testCase.featureEnabled,
});
const getGitHubVersionStub = sinon
sinon
.stub(apiClient, "getGitHubVersion")
.resolves(testCase.gitHubVersion);
const getPullRequestBranchesStub = sinon
sinon
.stub(actionsUtil, "getPullRequestBranches")
.returns(testCase.pullRequestBranches);
@@ -89,9 +89,6 @@ const testShouldPerformDiffInformedAnalysis = makeMacro({
t.is(result, expectedResult);
delete process.env.CODEQL_ACTION_DIFF_INFORMED_QUERIES;
getGitHubVersionStub.restore();
getPullRequestBranchesStub.restore();
});
},
title: (title) => `shouldPerformDiffInformedAnalysis: ${title}`,