Skip to content

Commit

Permalink
Merge pull request jashkenas#2750 from liroyleshed/patch-1
Browse files Browse the repository at this point in the history
Update arrays.js
  • Loading branch information
jashkenas committed May 1, 2018
2 parents db82bae + 376c832 commit 2851e9a
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 2851e9a

Please sign in to comment.