Skip to content
Merged
Changes from 1 commit
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
42 changes: 34 additions & 8 deletions tests/lib/rules/block-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ tester.run('block-spacing', rule, {
token: '{'
},
// message: 'Requires a space after \'{\'',
line: 3
line: 3,
column: 38,
endLine: 3,
endColumn: 39
},
{
messageId: 'missing',
Expand All @@ -46,7 +49,10 @@ tester.run('block-spacing', rule, {
token: '}'
},
// message: 'Requires a space before \'}\'',
line: 3
line: 3,
column: 51,
endLine: 3,
endColumn: 52
}
]
},
Expand All @@ -67,7 +73,10 @@ tester.run('block-spacing', rule, {
token: '{'
},
// message: 'Requires a space after \'{\'',
line: 3
line: 3,
column: 33,
endLine: 3,
endColumn: 34
},
{
messageId: 'missing',
Expand All @@ -76,7 +85,10 @@ tester.run('block-spacing', rule, {
token: '}'
},
// message: 'Requires a space before \'}\'',
line: 3
line: 3,
column: 46,
endLine: 3,
endColumn: 47
}
]
},
Expand All @@ -98,7 +110,10 @@ tester.run('block-spacing', rule, {
token: '{'
},
// message: 'Unexpected space(s) after \'{\'',
line: 3
line: 3,
column: 39,
endLine: 3,
endColumn: 40
},
{
messageId: 'extra',
Expand All @@ -107,7 +122,10 @@ tester.run('block-spacing', rule, {
token: '}'
},
// message: 'Unexpected space(s) before \'}\'',
line: 3
line: 3,
column: 52,
endLine: 3,
endColumn: 53
}
]
},
Expand All @@ -121,16 +139,24 @@ tester.run('block-spacing', rule, {
data: {
location: 'after',
token: '{'
}
},
// message: 'Requires a space after \'{\'',
line: 1,
column: 57,
endLine: 1,
endColumn: 58
},
{
messageId: 'missing',
data: {
location: 'before',
token: '}'
}
},
// message: 'Requires a space before \'}\'',
line: 1,
column: 67,
endLine: 1,
endColumn: 68
}
]
}
Expand Down