Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

section-tests

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

section-tests - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

8

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc