File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/eslint-config-airbnb/test Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ test('validate react prop order', (t) => {
7070` ) ) ;
7171
7272 t . ok ( result . errorCount , 'fails' ) ;
73- t . deepEqual ( result . messages . map ( x => x . ruleId ) , [ 'react/sort-comp' ] , 'fails due to sort' ) ;
73+ t . deepEqual ( result . messages . map ( ( msg ) => msg . ruleId ) , [ 'react/sort-comp' ] , 'fails due to sort' ) ;
7474 } ) ;
7575
7676 t . test ( 'order: when random method after lifecycle methods' , ( t ) => {
@@ -86,6 +86,6 @@ test('validate react prop order', (t) => {
8686` ) ) ;
8787
8888 t . ok ( result . errorCount , 'fails' ) ;
89- t . deepEqual ( result . messages . map ( x => x . ruleId ) , [ 'react/sort-comp' ] , 'fails due to sort' ) ;
89+ t . deepEqual ( result . messages . map ( ( msg ) => msg . ruleId ) , [ 'react/sort-comp' ] , 'fails due to sort' ) ;
9090 } ) ;
9191} ) ;
You can’t perform that action at this time.
0 commit comments