node-tdd 6.2.1 → 6.2.3
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.
|
@@ -315,7 +315,10 @@ export default (opts) => {
|
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
317
|
shutdown: () => {
|
|
318
|
-
const unexpectedFiles = fs
|
|
318
|
+
const unexpectedFiles = fs
|
|
319
|
+
.walkDir(opts.cassetteFolder)
|
|
320
|
+
.filter((f) => !knownCassetteNames.includes(f))
|
|
321
|
+
.filter((f) => !['.DS_Store'].includes(f));
|
|
319
322
|
if (unexpectedFiles.length !== 0) {
|
|
320
323
|
throw new Error(`Unexpected file(s) in cassette folder: ${unexpectedFiles.join(', ')}`);
|
|
321
324
|
}
|
package/lib/util/compare-urls.js
CHANGED
|
@@ -7,5 +7,8 @@ export default (firstUrl, secondUrl) => {
|
|
|
7
7
|
const options = {
|
|
8
8
|
removeTrailingSlash: false
|
|
9
9
|
};
|
|
10
|
-
return
|
|
10
|
+
return (
|
|
11
|
+
normalizeUrl(`https://test.com${firstUrl}`, options)
|
|
12
|
+
=== normalizeUrl(`https://test.com${secondUrl}`, options)
|
|
13
|
+
);
|
|
11
14
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-tdd",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.2.
|
|
4
|
+
"version": "6.2.3",
|
|
5
5
|
"description": "Drop in extension for mocha to abstract commonly used test setups",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"lru-cache-ext": "5.0.1",
|
|
82
82
|
"minimist": "1.2.8",
|
|
83
83
|
"nock": "13.5.6",
|
|
84
|
-
"normalize-url": "
|
|
84
|
+
"normalize-url": "8.1.0",
|
|
85
85
|
"object-scan": "20.0.1",
|
|
86
86
|
"smart-fs": "5.0.2",
|
|
87
87
|
"timekeeper": "2.3.1",
|