Skip to content

Commit

Permalink
Merge pull request #60 from kalviumcommunity/fix/duplicate-tests
Browse files Browse the repository at this point in the history
Add logic to only look at direct children in a spec to avoid duplicates
  • Loading branch information
anipnwr7777 authored Jun 27, 2024
2 parents ed69bde + 5afcade commit 3da50ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/code.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ const _runTests = async () => {
};

suiteElements.forEach((suiteElement) => {
const specElements = suiteElement.querySelectorAll('.jasmine-specs');
const specElements = suiteElement.querySelectorAll(':scope > .jasmine-specs'); // only look at direct children to avoid duplicates

specElements.forEach((specElement) => {
const passedTests = Array.from(specElement.querySelectorAll('.jasmine-passed'), el => el.textContent)
Expand Down

0 comments on commit 3da50ee

Please sign in to comment.