Skip to content

Commit 414251e

Browse files
committed
feature: @putout/plugin-putout: apply-transform-with-options: no options
1 parent 4bb24ad commit 414251e

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test('lib: select: transform with options', (t) => {
2+
t.transform('select');
3+
t.end();
4+
});
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
test('lib: select: transform with options', (t) => {
2+
t.transformWithOptions('select');
3+
t.end();
4+
});

packages/plugin-putout/lib/apply-transform-with-options/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ export const match = () => ({
2323

2424
export const replace = () => ({
2525
't.transform(__a, __b)': 't.transformWithOptions(__a, __b)',
26+
't.transformWithOptions(__a)': 't.transform(__a)',
2627
});

packages/plugin-putout/lib/apply-transform-with-options/index.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ test('putout: apply-transform-with-options: transform', (t) => {
1616
t.transform('apply-transform-with-options');
1717
t.end();
1818
});
19+
20+
test('putout: apply-transform-with-options: transform: no-options', (t) => {
21+
t.transform('no-options');
22+
t.end();
23+
});

0 commit comments

Comments
 (0)