section-tests
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "section-tests", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "TDD for node.js", | ||
@@ -28,5 +28,5 @@ "main": "index.js", | ||
"chalk": "^1.1.3", | ||
"ee-log": "^1.0.2", | ||
"ee-types": "^2.1.2", | ||
"glob": "^7.1.1" | ||
"ee-log": "^1.1.0", | ||
"ee-types": "^2.1.4", | ||
"glob": "^7.1.2" | ||
}, | ||
@@ -33,0 +33,0 @@ "bin": { |
@@ -70,14 +70,14 @@ { | ||
err.returnStructured = true; | ||
const isAssertion = /AssertionError/gi.test(err.name); | ||
const data = { | ||
stack: this.formatStackTrace(err) | ||
, message: err.message | ||
, type: err.name | ||
, type: isAssertion ? 'AssertionError' : err.name | ||
} | ||
if (err.name === 'AssertionError') { | ||
if (err.expected) data.expected = err.expected; | ||
if (err.actual) data.actual = err.actual; | ||
if (err.operator) data.operator = err.operator; | ||
if (isAssertion) { | ||
if (err.expected !== undefined) data.expected = err.expected; | ||
if (err.actual !== undefined) data.actual = err.actual; | ||
if (err.operator !== undefined) data.operator = err.operator; | ||
} | ||
@@ -84,0 +84,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115699
689
Updatedee-log@^1.1.0
Updatedee-types@^2.1.4
Updatedglob@^7.1.2