Skip to content

Commit df2c99c

Browse files
1peteljharb
authored andcommitted
[tests] fix eslint errors from c66cfc3
1 parent ab72ab9 commit df2c99c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/eslint-config-airbnb/test/test-react-order.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)