Skip to content

Commit

Permalink
Merge pull request #2097 from amitpanwar789/feature/quickTestSuite_na…
Browse files Browse the repository at this point in the history
…ture_module

minor bug fixed in checkDisableTestSuite
  • Loading branch information
Ark2307 authored Feb 15, 2025
2 parents d06eec3 + 5faa9b2 commit 23aa363
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,18 @@ function RunTestSuites({ testRun, setTestRun, apiCollectionName, checkRemoveAll,
}

function checkDisableTestSuite(data) {
if (testRun === undefined) return 0;
if (testRun === undefined) return false;
const updatedTests = { ...testRun?.tests };
const testSet = new Set(data.tests);
let check = true;
Object.keys(updatedTests).forEach(category => {
updatedTests[category]?.forEach(test => {
if (testSet.has(test.value)) {
return true;
check = false;
}
});
});
return false;
return check;
}

function checkifSelected(data) {
Expand Down

0 comments on commit 23aa363

Please sign in to comment.