Browse Source

[build] Update to 0.11.8

master
Muthu Kumar 6 years ago
parent
commit
8c845b8310
  1. 10
      browser/index.js
  2. 10
      es5/reporters/xunit.js
  3. 2
      package.json

10
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: {

10
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: {

2
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": {

Loading…
Cancel
Save