Skip to content

Commit

Permalink
fix broken test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
clayreimann committed Jul 12, 2023
1 parent 4cc3163 commit 3cecb0b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
20 changes: 12 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"debug": "^4.3.4",
"md5": "^2.3.0",
"mkdirp": "~1.2.6",
"mkdirp": "^3.0.0",
"strip-ansi": "^6.0.1",
"xml": "^1.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions test/mocha-junit-reporter-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ describe('mocha-junit-reporter', function() {
reporter.runner,
dir +
"results." +
reporter._testsuites[0].testsuite[0]._attr.file +
(reporter._testsuites[0]?.testsuite[0]?._attr?.file ?? 'suiteFileName') +
".xml"
);
done();
Expand All @@ -337,7 +337,7 @@ describe('mocha-junit-reporter', function() {
reporter.runner,
dir +
"results." +
reporter._testsuites[1].testsuite[0]._attr.name +
(reporter._testsuites[1]?.testsuite[0]?._attr?.name ?? 'suiteName') +
".xml"
);
done();
Expand Down

0 comments on commit 3cecb0b

Please sign in to comment.