Skip to content

Commit d474070

Browse files
committed
test: update fixtures
1 parent c411cdb commit d474070

16 files changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
const mockRequire = require('mock-require');
22
const {stopAll} = mockRequire;
3+
34
stopAll();

packages/operator-declare/lib/declare.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ test('putout: operator: declare: couple consts', (t) => {
737737
const expected = montag`
738738
const {isArray} = Array;
739739
const maybeArray = (a) => isArray(a) ? a : [a];
740+
740741
maybeArray(x);\n
741742
`;
742743

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const {types, operator} = require('putout');
22

33
const {remove} = operator;
4+
45
remove(path);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const freshImportDefault = ((count) => async (name) => (await import(`${name}?count=${++count}`)).default)(0);
22
const freshImport = ((count) => (name) => import(`${name}?count=${++count}`))(0);
3+
34
freshImport('hello');
45
freshImportDefault('hello');

packages/plugin-minify/lib/inline/fixture/both-expressions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var {keys: A} = Object;
22
let a, b, c, d;
3+
34
A(a);
45
A(b);
56
A(c);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
const {readFileSync} = require('fs/promises');
22
const name = 'hello.txt';
3+
34
readFileSync(name);

packages/plugin-nodejs/lib/strict-mode/add-missing/fixture/nodejs-fix.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
const a = require('a');
44
const noop = () => {};
5+
56
noop();

packages/plugin-printer/lib/add-args/fixture/three-args-no-object.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = {
22
TSPropertySignature(path, semantics, printer) {
33
const {print} = printer;
44
const {optional} = path.node;
5+
56
print('__key');
67
maybe.print(optional, '?');
78
},

packages/plugin-putout/lib/add-traverse-args/fixture/add-store-fix.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports.traverse = ({push, store}) => ({
22
ImportDeclaration(path) {
33
const {node} = path;
44
const {name} = node.specifiers[0].local;
5+
56
store('name', name);
67
},
78
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const dirPath = createNestedDirectory(path, '/hello/world');
22
const dirPath2 = createDirectory(path, 'world');
3+
34
createNestedDirectory(path, '/world');
45
createNestedDirectory(path, '/hello/world');
56
createDirectory(path, 'hello');

0 commit comments

Comments
 (0)