mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Merge pull request #630 from dorny/chore/shadowed_variables
This commit is contained in:
commit
ec1e910416
2 changed files with 4 additions and 4 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
|
@ -837,12 +837,12 @@ class DotnetNunitParser {
|
||||||
.map(suite => suite.$.name)
|
.map(suite => suite.$.name)
|
||||||
.join('.');
|
.join('.');
|
||||||
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name;
|
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name;
|
||||||
let existingSuite = result.find(existingSuite => existingSuite.name === suiteName);
|
let existingSuite = result.find(suite => suite.name === suiteName);
|
||||||
if (existingSuite === undefined) {
|
if (existingSuite === undefined) {
|
||||||
existingSuite = new test_results_1.TestSuiteResult(suiteName, []);
|
existingSuite = new test_results_1.TestSuiteResult(suiteName, []);
|
||||||
result.push(existingSuite);
|
result.push(existingSuite);
|
||||||
}
|
}
|
||||||
let existingGroup = existingSuite.groups.find(existingGroup => existingGroup.name === groupName);
|
let existingGroup = existingSuite.groups.find(group => group.name === groupName);
|
||||||
if (existingGroup === undefined) {
|
if (existingGroup === undefined) {
|
||||||
existingGroup = new test_results_1.TestGroupResult(groupName, []);
|
existingGroup = new test_results_1.TestGroupResult(groupName, []);
|
||||||
existingSuite.groups.push(existingGroup);
|
existingSuite.groups.push(existingGroup);
|
||||||
|
|
|
||||||
|
|
@ -77,13 +77,13 @@ export class DotnetNunitParser implements TestParser {
|
||||||
.join('.')
|
.join('.')
|
||||||
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name
|
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name
|
||||||
|
|
||||||
let existingSuite = result.find(existingSuite => existingSuite.name === suiteName)
|
let existingSuite = result.find(suite => suite.name === suiteName)
|
||||||
if (existingSuite === undefined) {
|
if (existingSuite === undefined) {
|
||||||
existingSuite = new TestSuiteResult(suiteName, [])
|
existingSuite = new TestSuiteResult(suiteName, [])
|
||||||
result.push(existingSuite)
|
result.push(existingSuite)
|
||||||
}
|
}
|
||||||
|
|
||||||
let existingGroup = existingSuite.groups.find(existingGroup => existingGroup.name === groupName)
|
let existingGroup = existingSuite.groups.find(group => group.name === groupName)
|
||||||
if (existingGroup === undefined) {
|
if (existingGroup === undefined) {
|
||||||
existingGroup = new TestGroupResult(groupName, [])
|
existingGroup = new TestGroupResult(groupName, [])
|
||||||
existingSuite.groups.push(existingGroup)
|
existingSuite.groups.push(existingGroup)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue