@putout/plugin-tape 9.2.1 → 9.3.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.
@@ -60,9 +60,10 @@ function replace({__a}, path) {
60
60
 
61
61
  const arg = path.get('arguments.1').node;
62
62
  arg.async = true;
63
- const {body} = arg.body;
64
63
 
64
+ const {body} = arg.body;
65
65
  const n = body.length;
66
+
66
67
  for (let i = 0; i < n; i++) {
67
68
  let nodes = [];
68
69
 
@@ -11,12 +11,15 @@ const {
11
11
  TEST_ASYNC_SKIP,
12
12
  } = require('../test-signatures');
13
13
 
14
- const {traverse} = operator;
14
+ const {
15
+ traverse,
16
+ remove,
17
+ } = operator;
15
18
 
16
19
  module.exports.report = () => `Remove 'stopAll()' when you not calling 'reImport()'`;
17
20
 
18
21
  module.exports.fix = (path) => {
19
- path.remove();
22
+ remove(path);
20
23
  };
21
24
 
22
25
  module.exports.traverse = ({push}) => ({
@@ -2,12 +2,15 @@
2
2
 
3
3
  const {operator} = require('putout');
4
4
 
5
- const {traverse} = operator;
5
+ const {
6
+ traverse,
7
+ remove,
8
+ } = operator;
6
9
 
7
10
  module.exports.report = () => `Avoid useless 't.end()'`;
8
11
 
9
12
  module.exports.fix = (path) => {
10
- path.remove();
13
+ remove(path);
11
14
  };
12
15
 
13
16
  const TEST = 'test("__a", (t) => __body)';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-tape",
3
- "version": "9.2.1",
3
+ "version": "9.3.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "putout plugin helps with tests",