node-tdd 3.1.0 → 3.1.1

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.
package/README.md CHANGED
@@ -86,7 +86,7 @@ Can be used in the following ways:
86
86
  - `--nock-heal response`: Will try to heal responses
87
87
  - `--nock-heal record`: Will record the next unmatched request
88
88
  - `--nock-heal stub`: Will stub the next unmatched request
89
- - `--nock-heal magic`: Shorthand for `prune,headers,body,path,response`
89
+ - `--nock-heal magic`: Shorthand for `headers,body,path,response`
90
90
 
91
91
  Notes:
92
92
  - Different flags can be combined as e.g. `--nock-heal body,path`
@@ -240,7 +240,7 @@ module.exports = opts => {
240
240
  nockMock.unpatch();
241
241
 
242
242
  if (opts.heal !== false) {
243
- fs.smartWrite(cassetteFilePath, anyFlagPresent(['magic', 'prune']) ? expectedCassette : [...expectedCassette, ...pendingMocks.map(({
243
+ fs.smartWrite(cassetteFilePath, anyFlagPresent(['prune']) ? expectedCassette : [...expectedCassette, ...pendingMocks.map(({
244
244
  record
245
245
  }) => record)], {
246
246
  keepOrder: outOfOrderErrors.length === 0 && pendingMocks.length === 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-tdd",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Drop in extension for mocha to abstract commonly used test setups",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {