Comparing version 3.4.1 to 3.4.2
@@ -7,2 +7,3 @@ import assert from 'assert'; | ||
import nock from 'nock'; | ||
import get from 'lodash.get'; | ||
import cloneDeep from 'lodash.clonedeep'; | ||
@@ -124,4 +125,7 @@ import compareUrls from 'compare-urls'; | ||
} else if (anyFlagPresent(['stub'])) { | ||
const host = options.host || options.hostname; | ||
const port = get(options, 'port', { http: 80, https: 443 }[protocol]); | ||
const scope = `${protocol}://${host}:${port}`; | ||
expectedCassette.push({ | ||
scope: `${protocol}://${options.host || options.hostname}:${options.port}`, | ||
scope, | ||
method: options.method, | ||
@@ -128,0 +132,0 @@ path: options.path, |
{ | ||
"name": "node-tdd", | ||
"type": "module", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "Drop in extension for mocha to abstract commonly used test setups", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
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
44244
1007