Skip to content

Commit 1263111

Browse files
committed
feature: @putout/plugin-putout: apply-fixture-name-to-message: noReport: couple args
1 parent 9b0f3e6 commit 1263111

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test('putout: group-imports-by-source: no report after transform: sort-imports-by-specifiers-couple', (t) => {
2+
t.noReport('sort-imports-by-specifiers-couple', [
3+
['sort-imports-by-specifiers', sortImportsBySpecifiers],
4+
]);
5+
t.end();
6+
});
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test('putout: group-imports-by-source: no report after transform: sort-imports-by-specifiers', (t) => {
2+
t.noReport('sort-imports-by-specifiers-couple', [
3+
['sort-imports-by-specifiers', sortImportsBySpecifiers],
4+
]);
5+
t.end();
6+
});

packages/plugin-putout/lib/apply-fixture-name-to-message/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const report = () => `Apply 'fixture' name to 'message'`;
2424

2525
export const match = () => ({
2626
't.noReport(__a)': check,
27+
't.noReport(__a, __b)': check,
2728
't.noReportAfterTransform(__a)': check,
2829
't.report(__a, __b)': check,
2930
't.transform(__a)': check,
@@ -36,6 +37,7 @@ export const match = () => ({
3637

3738
export const replace = () => ({
3839
't.noReport(__a)': transform,
40+
't.noReport(__a, __b)': transform,
3941
't.report(__a, __b)': transform,
4042
't.transform(__a)': transform,
4143
't.transform(__a, __b)': transform,

packages/plugin-putout/lib/apply-fixture-name-to-message/index.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,8 @@ test('putout: apply-fixture-name-to-message: undefined', (t) => {
8181
t.noReport('undefined');
8282
t.end();
8383
});
84+
85+
test('putout: apply-fixture-name-to-message: transform: no-report', (t) => {
86+
t.transform('no-report');
87+
t.end();
88+
});

0 commit comments

Comments
 (0)