Skip to content
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
72 changes: 54 additions & 18 deletions tests/lib/rules/next-tick-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
},
Expand Down Expand Up @@ -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
}
]
},
Expand All @@ -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
}
]
}
Expand Down