node-tdd 3.0.2 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,8 @@ const nock = require('nock');
16
16
 
17
17
  const cloneDeep = require('lodash.clonedeep');
18
18
 
19
+ const compareUrls = require('compare-urls');
20
+
19
21
  const nockListener = require('./request-recorder/nock-listener');
20
22
 
21
23
  const nockMock = require('./request-recorder/nock-mock');
@@ -156,7 +158,11 @@ module.exports = opts => {
156
158
  scope.filteringPath = requestPath => {
157
159
  if (anyFlagPresent(['magic', 'path'])) {
158
160
  const idx = pendingMocks.findIndex(m => m.idx === scopeIdx);
159
- pendingMocks[idx].record.path = requestPath;
161
+
162
+ if (!compareUrls(pendingMocks[idx].record.path, requestPath)) {
163
+ pendingMocks[idx].record.path = requestPath;
164
+ }
165
+
160
166
  return scope.path;
161
167
  }
162
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-tdd",
3
- "version": "3.0.2",
3
+ "version": "3.0.6",
4
4
  "description": "Drop in extension for mocha to abstract commonly used test setups",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -41,29 +41,29 @@
41
41
  },
42
42
  "homepage": "https://github.com/blackflux/node-tdd#readme",
43
43
  "devDependencies": {
44
- "@babel/cli": "7.13.0",
45
- "@babel/core": "7.13.10",
46
- "@babel/register": "7.13.8",
47
- "@blackflux/eslint-plugin-rules": "2.0.1",
48
- "@blackflux/robo-config-plugin": "5.0.0",
49
- "aws-sdk": "2.865.0",
50
- "aws-sdk-wrap": "9.2.1",
44
+ "@babel/cli": "7.14.8",
45
+ "@babel/core": "7.15.0",
46
+ "@babel/register": "7.15.3",
47
+ "@blackflux/eslint-plugin-rules": "2.0.3",
48
+ "@blackflux/robo-config-plugin": "5.3.0",
49
+ "aws-sdk": "2.981.0",
50
+ "aws-sdk-wrap": "9.6.0",
51
51
  "axios": "0.21.1",
52
52
  "babel-eslint": "10.1.0",
53
53
  "babel-preset-latest-node": "5.5.1",
54
54
  "chai": "4.3.4",
55
- "coveralls": "3.1.0",
56
- "eslint": "7.22.0",
55
+ "coveralls": "3.1.1",
56
+ "eslint": "7.32.0",
57
57
  "eslint-config-airbnb-base": "14.2.1",
58
- "eslint-plugin-import": "2.22.1",
59
- "eslint-plugin-json": "2.1.2",
60
- "eslint-plugin-markdown": "2.0.0",
61
- "eslint-plugin-mocha": "8.1.0",
58
+ "eslint-plugin-import": "2.24.2",
59
+ "eslint-plugin-json": "3.1.0",
60
+ "eslint-plugin-markdown": "2.2.0",
61
+ "eslint-plugin-mocha": "9.0.0",
62
62
  "fancy-log": "1.3.3",
63
- "js-gardener": "3.0.1",
64
- "lambda-monitor-logger": "2.4.11",
63
+ "js-gardener": "3.0.3",
64
+ "lambda-monitor-logger": "3.0.0",
65
65
  "nyc": "15.1.0",
66
- "semantic-release": "17.4.2"
66
+ "semantic-release": "17.4.7"
67
67
  },
68
68
  "licenses": [
69
69
  {
@@ -109,13 +109,14 @@
109
109
  ],
110
110
  "dependencies": {
111
111
  "callsites": "3.1.0",
112
+ "compare-urls": "2.0.0",
112
113
  "joi-strict": "2.0.0",
113
114
  "lodash.clonedeep": "4.5.0",
114
115
  "lodash.get": "4.4.2",
115
116
  "minimist": "1.2.5",
116
- "nock": "13.0.11",
117
- "object-scan": "14.0.0",
118
- "smart-fs": "1.12.7",
117
+ "nock": "13.1.3",
118
+ "object-scan": "17.0.0",
119
+ "smart-fs": "2.0.2",
119
120
  "timekeeper": "2.2.0",
120
121
  "tmp": "0.2.1",
121
122
  "uuid": "8.3.0",