Skip to content

Commit a37ecd8

Browse files
committed
test: add case where both inner and outer var declarations are in wrong order
1 parent 1843e4b commit a37ecd8

File tree

1 file changed

+5
-1
lines changed
  • lib/node_modules/@stdlib/_tools/eslint/rules/vars-order/test/fixtures

1 file changed

+5
-1
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/vars-order/test/fixtures/invalid.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ invalid.push( test );
268268
test = {
269269
'code': [
270270
'function outer() {',
271-
' var x;',
272271
' var xyz;',
272+
' var x;',
273273
' function inner() {',
274274
' var abc = 5;',
275275
' var ab = 5;',
@@ -284,6 +284,10 @@ test = {
284284
'order': 'increasing'
285285
}],
286286
'errors': [
287+
{
288+
'message': 'Variable declarations inside of function are not ordered by length (in increasing order)',
289+
'type': null
290+
},
287291
{
288292
'message': 'Variable declarations inside of function are not ordered by length (in increasing order)',
289293
'type': null

0 commit comments

Comments
 (0)