Skip to content

Commit 1df9617

Browse files
committed
feature: @putout/plugin-putout: replace-test-message: noReport: couple args
1 parent 1263111 commit 1df9617

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

packages/plugin-putout/lib/replace-test-message/fixture/no-report-fix.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ test('menu: hide-submenu: no report: no-menu', (t) => {
77
t.noReport('no-menu');
88
t.end();
99
});
10+
11+
test('putout: group-imports-by-source: no report: sort-imports-by-specifiers', (t) => {
12+
t.noReport('sort-imports-by-specifiers-couple', [
13+
['sort-imports-by-specifiers', sortImportsBySpecifiers],
14+
]);
15+
t.end();
16+
});

packages/plugin-putout/lib/replace-test-message/fixture/no-report.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ test('menu: hide-submenu: no report with options: no-menu', (t) => {
88
t.end();
99
});
1010

11+
12+
test('putout: group-imports-by-source: no report after transform: sort-imports-by-specifiers', (t) => {
13+
t.noReport('sort-imports-by-specifiers-couple', [
14+
['sort-imports-by-specifiers', sortImportsBySpecifiers],
15+
]);
16+
t.end();
17+
});

packages/plugin-putout/lib/replace-test-message/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ export const traverse = ({push}) => ({
5959
incorrect: INCORRECT.NO_REPORT,
6060
correct: ': no report',
6161
}),
62+
't.noReport(__a, __b)': convert({
63+
push,
64+
incorrect: INCORRECT.NO_REPORT,
65+
correct: ': no report',
66+
}),
6267
't.noReportAfterTransform(__a)': convert({
6368
push,
6469
incorrect: INCORRECT.NO_REPORT_AFTER_TRANSFORM,

0 commit comments

Comments
 (0)