From 8c845b8310f4866d7b80cc30ecb9546746782e94 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Tue, 25 Sep 2018 20:09:00 +0530 Subject: [PATCH] [build] Update to 0.11.8 --- browser/index.js | 10 +++++++--- es5/reporters/xunit.js | 10 +++++++--- package.json | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/browser/index.js b/browser/index.js index e2a0720..052d0ae 100644 --- a/browser/index.js +++ b/browser/index.js @@ -2458,10 +2458,14 @@ function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.itera time: results.duration / 1000 || 0 }, children: results.reduce(function (acc, r) { - var content = r.status !== 'ok' && (r.status === 'skip' ? 'skipped' : { + var reason = r.reason ? r.reason.stack || r.reason : ''; + var content = r.status !== 'ok' && r.status === 'skip' ? { + name: 'skipped', + text: reason + } : { name: 'failure', - text: r.reason ? r.reason && r.reason.stack : '' - }); + text: reason + }; acc.push(_objectSpread({ name: 'testcase', attrs: { diff --git a/es5/reporters/xunit.js b/es5/reporters/xunit.js index 4bbb455..97b3a26 100644 --- a/es5/reporters/xunit.js +++ b/es5/reporters/xunit.js @@ -31,10 +31,14 @@ var toJSON = function toJSON(resultsArray) { time: results.duration / 1000 || 0 }, children: results.reduce(function (acc, r) { - var content = r.status !== 'ok' && (r.status === 'skip' ? 'skipped' : { + var reason = r.reason ? r.reason.stack || r.reason : ''; + var content = r.status !== 'ok' && r.status === 'skip' ? { + name: 'skipped', + text: reason + } : { name: 'failure', - text: r.reason ? r.reason && r.reason.stack : '' - }); + text: reason + }; acc.push(_objectSpread({ name: 'testcase', attrs: { diff --git a/package.json b/package.json index ec756e0..76af092 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@klenty/gunner", - "version": "0.11.7", + "version": "0.11.8", "description": "Zero magic, fast test-runner and assertion framework. No magic globals.", "main": "index.js", "repository": {