Skip to content

Commit 3d1909d

Browse files
committed
Drop support for misspelled option suiteTitleSeparatedBy
1 parent fababe6 commit 3d1909d

File tree

5 files changed

+3
-14
lines changed

5 files changed

+3
-14
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ output line 2
187187
| toConsole | `false` | if set to a truthy value the produced XML will be logged to the console |
188188
| useFullSuiteTitle | `false` | if set to a truthy value nested suites' titles will show the suite lineage |
189189
| suiteTitleSeparatedBy | ` ` (space) | the character to use to separate nested suite titles. (defaults to ' ', '.' if in jenkins mode) |
190-
| suiteTitleSeparedBy | ` ` (space) | deprecated. use `suiteTitleSeparatedBy` |
191190
| testCaseSwitchClassnameAndName | `false` | set to a truthy value to switch name and classname values |
192191
| rootSuiteTitle | `Root Suite` | the name for the root suite. (defaults to 'Root Suite') |
193192
| testsuitesTitle | `Mocha Tests` | the name for the `testsuites` tag (defaults to 'Mocha Tests') |

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function configureDefaults(options) {
7676
updateOptionsForJenkinsMode(config);
7777
}
7878

79-
config.suiteTitleSeparatedBy = config.suiteTitleSeparatedBy || config.suiteTitleSeparedBy || ' ';
79+
config.suiteTitleSeparatedBy = config.suiteTitleSeparatedBy || ' ';
8080

8181
return config;
8282
}

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mocha-junit-reporter",
3-
"version": "1.23.3",
3+
"version": "2.0.0",
44
"description": "A JUnit reporter for mocha.",
55
"main": "index.js",
66
"scripts": {

test/mocha-junit-reporter-spec.js

-10
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,6 @@ describe('mocha-junit-reporter', function() {
343343
});
344344
});
345345

346-
it('respects the misspelled "suiteTitleSeparatedBy" option', function(done) {
347-
var reporter = createReporter({useFullSuiteTitle: true, suiteTitleSeparedBy: '.'});
348-
executeTestRunner(reporter.runner, function() {
349-
expect(suiteName(reporter._testsuites[0])).to.equal('');
350-
expect(suiteName(reporter._testsuites[1])).to.equal('Root Suite.Foo Bar');
351-
expect(suiteName(reporter._testsuites[2])).to.equal('Root Suite.Another suite!');
352-
done();
353-
});
354-
});
355-
356346
function suiteName(suite) {
357347
return suite.testsuite[0]._attr.name;
358348
}

0 commit comments

Comments
 (0)