Comparing version 3.3.3 to 3.4.0
@@ -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 |
{ | ||
"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 @@ |
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
42932
958
216