@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 +17 -1
- package/lib/index.js +1 -0
- package/lib/remove-useless-not-called-args/index.js +8 -0
- package/package.json +1 -1
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
package/package.json
CHANGED