Skip to content

test(define-emits-declaration): make tests more strict #2819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 32 additions & 8 deletions tests/lib/rules/define-emits-declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
},
Expand All @@ -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
}
]
},
Expand All @@ -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
}
]
},
Expand All @@ -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
}
]
},
Expand All @@ -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
}
]
},
Expand All @@ -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
}
]
},
Expand All @@ -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
}
]
}
Expand Down
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