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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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