testit-adapter-mocha 3.2.8 → 3.2.9-TMS-5.4

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.
Files changed (2) hide show
  1. package/lib/reporter.js +1 -1
  2. package/package.json +2 -2
package/lib/reporter.js CHANGED
@@ -170,7 +170,7 @@ class TmsReporter extends Reporter {
170
170
  workItemIds: (_p = test.ctx) === null || _p === void 0 ? void 0 : _p.workItemsIds,
171
171
  externalKey: test.title,
172
172
  };
173
- const promise = this.strategy.loadAutotest(autotestPost, test.state == StateConstants.STATE_PASSED);
173
+ const promise = this.strategy.loadAutotest(autotestPost, this._getOutcome(test.state));
174
174
  this.autotestsQueue.push(promise);
175
175
  this.autotestsForTestRun.push({
176
176
  autoTestExternalId: autotestPost.externalId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testit-adapter-mocha",
3
- "version": "3.2.8",
3
+ "version": "3.2.9-TMS-5.4",
4
4
  "description": "Mocha adapter for Test IT",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/types.d.ts",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "mocha": "^10.2.0",
29
29
  "deasync-promise": "^1.0.1",
30
- "testit-js-commons": "3.2.8"
30
+ "testit-js-commons": "3.2.9-TMS-5.4"
31
31
  },
32
32
  "files": [
33
33
  "lib"