From 0f9e9a442ed0a0a6f67481d3cce8be5fa334fa83 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Wed, 30 Jul 2025 23:05:12 +0200 Subject: [PATCH] test(next-tick-style): make tests more strict --- tests/lib/rules/next-tick-style.js | 72 ++++++++++++++++++++++-------- 1 file changed, 54 insertions(+), 18 deletions(-) diff --git a/tests/lib/rules/next-tick-style.js b/tests/lib/rules/next-tick-style.js index c143c8a40..1ad3b7669 100644 --- a/tests/lib/rules/next-tick-style.js +++ b/tests/lib/rules/next-tick-style.js @@ -137,37 +137,49 @@ tester.run('next-tick-style', rule, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 4, - column: 16 + column: 16, + endLine: 4, + endColumn: 25 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 5, - column: 15 + column: 15, + endLine: 5, + endColumn: 23 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 6, - column: 11 + column: 11, + endLine: 6, + endColumn: 13 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 8, - column: 16 + column: 16, + endLine: 8, + endColumn: 25 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 9, - column: 15 + column: 15, + endLine: 9, + endColumn: 23 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 10, - column: 11 + column: 11, + endLine: 10, + endColumn: 13 } ] }, @@ -203,37 +215,49 @@ tester.run('next-tick-style', rule, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 4, - column: 16 + column: 16, + endLine: 4, + endColumn: 25 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 5, - column: 15 + column: 15, + endLine: 5, + endColumn: 23 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 6, - column: 11 + column: 11, + endLine: 6, + endColumn: 13 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 8, - column: 16 + column: 16, + endLine: 8, + endColumn: 25 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 9, - column: 15 + column: 15, + endLine: 9, + endColumn: 23 }, { message: 'Use the Promise returned by `nextTick` instead of passing a callback function.', line: 10, - column: 11 + column: 11, + endLine: 10, + endColumn: 13 } ] }, @@ -258,37 +282,49 @@ tester.run('next-tick-style', rule, { message: 'Pass a callback function to `nextTick` instead of using the returned Promise.', line: 4, - column: 16 + column: 16, + endLine: 4, + endColumn: 25 }, { message: 'Pass a callback function to `nextTick` instead of using the returned Promise.', line: 5, - column: 15 + column: 15, + endLine: 5, + endColumn: 23 }, { message: 'Pass a callback function to `nextTick` instead of using the returned Promise.', line: 6, - column: 11 + column: 11, + endLine: 6, + endColumn: 13 }, { message: 'Pass a callback function to `nextTick` instead of using the returned Promise.', line: 8, - column: 22 + column: 22, + endLine: 8, + endColumn: 31 }, { message: 'Pass a callback function to `nextTick` instead of using the returned Promise.', line: 9, - column: 21 + column: 21, + endLine: 9, + endColumn: 29 }, { message: 'Pass a callback function to `nextTick` instead of using the returned Promise.', line: 10, - column: 17 + column: 17, + endLine: 10, + endColumn: 19 } ] }