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

node-tdd

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-tdd - npm Package Compare versions

Comparing version 3.3.3 to 3.4.0

8

lib/modules/request-recorder.js

@@ -186,2 +186,10 @@ import assert from 'assert';

// https://github.com/nock/nock/blob/79ee0429050af929c525ae21a326d22796344bfc/lib/interceptor.js#L616
if (Number.isInteger(pendingMocks[idx]?.record?.delayConnection)) {
interceptor.delayConnection(pendingMocks[idx].record.delayConnection);
}
if (Number.isInteger(pendingMocks[idx]?.record?.delayBody)) {
interceptor.delayBody(pendingMocks[idx].record.delayBody);
}
if (anyFlagPresent(['magic', 'headers'])) {

@@ -188,0 +196,0 @@ // add new headers

16

package.json
{
"name": "node-tdd",
"type": "module",
"version": "3.3.3",
"version": "3.4.0",
"description": "Drop in extension for mocha to abstract commonly used test setups",

@@ -45,14 +45,14 @@ "main": "lib/index.js",

"devDependencies": {
"@babel/core": "7.17.9",
"@babel/core": "7.17.10",
"@babel/eslint-parser": "7.17.0",
"@babel/register": "7.17.7",
"@blackflux/eslint-plugin-rules": "2.1.0",
"@blackflux/robo-config-plugin": "7.7.6",
"aws-sdk": "2.1112.0",
"aws-sdk-wrap": "12.0.4",
"axios": "0.26.1",
"c8": "7.11.0",
"@blackflux/robo-config-plugin": "7.7.12",
"aws-sdk": "2.1131.0",
"aws-sdk-wrap": "12.1.3",
"axios": "0.27.2",
"c8": "7.11.2",
"chai": "4.3.6",
"coveralls": "3.1.1",
"eslint": "8.13.0",
"eslint": "8.15.0",
"eslint-config-airbnb-base": "15.0.0",

@@ -59,0 +59,0 @@ "eslint-plugin-import": "2.26.0",

@@ -39,2 +39,12 @@ # node-tdd

### Custom Cassette Logic
### delayConnection
Delay the connection by a certain number of ms.
### delayBody
Delay the response body by a certain number of ms.
### Function Kwargs

@@ -41,0 +51,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