Skip to content

Commit 2f8d0aa

Browse files
gurgundayMichaelDeBoey
authored andcommitted
reorder tests
1 parent f100656 commit 2f8d0aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

__tests__/always-return.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,16 +241,16 @@ ruleTester.run('always-return', rule, {
241241
errors: [{ message }],
242242
},
243243
{
244-
code: `hey.then(x => { windo[x] = x })`,
245-
options: [{ ignoreAssignmentVariable: ['window'] }],
244+
code: `hey.then(x => { invalid = x })`,
246245
errors: [{ message }],
247246
},
248247
{
249-
code: `hey.then(x => { invalid = x })`,
248+
code: `hey.then(x => { invalid['x'] = x })`,
250249
errors: [{ message }],
251250
},
252251
{
253-
code: `hey.then(x => { invalid['x'] = x })`,
252+
code: `hey.then(x => { windo[x] = x })`,
253+
options: [{ ignoreAssignmentVariable: ['window'] }],
254254
errors: [{ message }],
255255
},
256256
{

0 commit comments

Comments
 (0)