@testomatio/reporter 1.1.0-beta.mocha-create.6 → 1.1.0-beta.mocha-create.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ function MochaReporter(runner, opts) {
27
27
 
28
28
  runner.on(EVENT_TEST_PASS, async test => {
29
29
  passes += 1;
30
-
30
+
31
31
  console.log(chalk.bold.green('✔'), test.fullTitle());
32
32
  const testId = parseTest(test.title);
33
33
 
@@ -86,7 +86,7 @@ module.exports = MochaReporter;
86
86
  function getSuiteTitle(test, pathArr = []) {
87
87
  pathArr.push(test.parent.title);
88
88
  if (test.parent.parent) getSuiteTitle(test.parent, pathArr);
89
- return pathArr.filter(t => !!t)[0];
89
+ return pathArr.reverse().filter(t => !!t)[0];
90
90
  }
91
91
 
92
92
  function getFile(test) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "1.1.0-beta.mocha-create.6",
3
+ "version": "1.1.0-beta.mocha-create.7",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "typings": "typings/index.d.ts",