@putout/plugin-tape 3.5.0 → 3.6.0

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
@@ -32,7 +32,9 @@ npm i @putout/plugin-tape -D
32
32
  "tape/convert-ok-to-called-with": "on",
33
33
  "tape/convert-match-regexp-to-string": "on",
34
34
  "tape/declare-stub": "on",
35
- "tape/declare-t": "on"
35
+ "tape/declare-t": "on",
36
+ "tape/remove-default-messages": "on",
37
+ "tape/remove-useless-not-called-args": "on"
36
38
  }
37
39
  }
38
40
  ```
@@ -445,6 +447,20 @@ t.equal(result, expected, 'should equal');
445
447
  t.equal(result, expected);
446
448
  ```
447
449
 
450
+ ## remove-useless-not-called-args
451
+
452
+ ### ❌ Incorrect code example
453
+
454
+ ```js
455
+ t.notCalled(fn, []);
456
+ ```
457
+
458
+ ### ✅ Correct code example
459
+
460
+ ```js
461
+ t.notCalled(fn);
462
+ ```
463
+
448
464
  ## License
449
465
 
450
466
  MIT
package/lib/index.js CHANGED
@@ -23,5 +23,6 @@ module.exports.rules = {
23
23
  ...getRule('declare-stub'),
24
24
  ...getRule('declare-t'),
25
25
  ...getRule('remove-default-messages'),
26
+ ...getRule('remove-useless-not-called-args'),
26
27
  };
27
28
 
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ module.exports.report = () => 'Remove useless "notCalled" args';
4
+
5
+ module.exports.replace = () => ({
6
+ 't.notCalled(__a, __array)': 't.notCalled(__a)',
7
+ });
8
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-tape",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "putout plugin helps with tests",
6
6
  "homepage": "http://github.com/coderaiser/putout",