Skip to content

Commit

Permalink
Merge pull request #352 from AlexP11223/fix-test
Browse files Browse the repository at this point in the history
Fix _first test
  • Loading branch information
ODudek authored May 4, 2023
2 parents 45289f6 + fc970fd commit 422f32f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lib/rules/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ ruleTester.run('_.first', rules['first'], {
],
invalid: [{
code: '_.first([0, 1, 3])',
errors: ['Consider using the native Array.prototype.slice()']
errors: ['Consider using the native Array.prototype.slice() or arr[0]']
}, {
code: '_.first([0, 1, 3], 2)',
errors: ['Consider using the native Array.prototype.slice()']
errors: ['Consider using the native Array.prototype.slice() or arr[0]']
}]
});

Expand Down

0 comments on commit 422f32f

Please sign in to comment.