From 74a88416fa1e0e1f866eb9fba346ef2652625f6e Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 20 Jul 2025 22:24:22 +0200 Subject: [PATCH] test(define-emits-declaration): make tests more strict --- tests/lib/rules/define-emits-declaration.js | 40 ++++++++++++++++----- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/tests/lib/rules/define-emits-declaration.js b/tests/lib/rules/define-emits-declaration.js index 4e65783c2..417ac8944 100644 --- a/tests/lib/rules/define-emits-declaration.js +++ b/tests/lib/rules/define-emits-declaration.js @@ -149,7 +149,10 @@ tester.run('define-emits-declaration', rule, { errors: [ { message: 'Use type based declaration instead of runtime declaration.', - line: 3 + line: 3, + column: 21, + endLine: 3, + endColumn: 54 } ] }, @@ -164,7 +167,10 @@ tester.run('define-emits-declaration', rule, { errors: [ { message: 'Use type based declaration instead of runtime declaration.', - line: 3 + line: 3, + column: 21, + endLine: 3, + endColumn: 54 } ] }, @@ -184,7 +190,10 @@ tester.run('define-emits-declaration', rule, { errors: [ { message: 'Use type based declaration instead of runtime declaration.', - line: 3 + line: 3, + column: 21, + endLine: 3, + endColumn: 54 } ] }, @@ -207,7 +216,10 @@ tester.run('define-emits-declaration', rule, { errors: [ { message: 'Use runtime declaration instead of type based declaration.', - line: 3 + line: 3, + column: 22, + endLine: 6, + endColumn: 13 } ] }, @@ -231,12 +243,18 @@ tester.run('define-emits-declaration', rule, { { message: 'Use new type literal declaration instead of the old call signature declaration.', - line: 4 + line: 4, + column: 11, + endLine: 4, + endColumn: 42 }, { message: 'Use new type literal declaration instead of the old call signature declaration.', - line: 5 + line: 5, + column: 11, + endLine: 5, + endColumn: 45 } ] }, @@ -260,7 +278,10 @@ tester.run('define-emits-declaration', rule, { { message: 'Use new type literal declaration instead of the old call signature declaration.', - line: 5 + line: 5, + column: 11, + endLine: 5, + endColumn: 45 } ] }, @@ -281,7 +302,10 @@ tester.run('define-emits-declaration', rule, { { message: 'Use new type literal declaration instead of the old call signature declaration.', - line: 3 + line: 3, + column: 34, + endLine: 3, + endColumn: 67 } ] } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy