Skip to content

Commit

Permalink
Update arrays.js
Browse files Browse the repository at this point in the history
I believe this is a typo.
  • Loading branch information
liroyleshed authored May 1, 2018
1 parent db82bae commit 376c832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@

QUnit.test('indexOf with NaN', function(assert) {
assert.strictEqual(_.indexOf([1, 2, NaN, NaN], NaN), 2, 'Expected [1, 2, NaN] to contain NaN');
assert.strictEqual(_.indexOf([1, 2, Infinity], NaN), -1, 'Expected [1, 2, NaN] to contain NaN');
assert.strictEqual(_.indexOf([1, 2, Infinity], NaN), -1, 'Expected [1, 2, Infinity] to NOT contain NaN');

assert.strictEqual(_.indexOf([1, 2, NaN, NaN], NaN, 1), 2, 'startIndex does not affect result');
assert.strictEqual(_.indexOf([1, 2, NaN, NaN], NaN, -2), 2, 'startIndex does not affect result');
Expand Down

0 comments on commit 376c832

Please sign in to comment.