diff --git a/test/collections.js b/test/collections.js index da3880dfe..4d9fdaa5d 100644 --- a/test/collections.js +++ b/test/collections.js @@ -107,11 +107,11 @@ $(document).ready(function() { equal(_.reduceRight([], function(){}, undefined), undefined, 'undefined can be passed as a special case'); raises(function() { _.reduceRight([], function(){}); }, TypeError, 'throws an error for empty arrays with no initial value'); }); - + test('collections: find', function() { var array = [1, 2, 3, 4]; - equal(3, _.find(array, function(n) { return n > 2; }), 'should return first found `value`'); - equal(void 0, _.find(array, function() { return false; }), 'should return `undefined` if `value` is not found'); + strictEqual(_.find(array, function(n) { return n > 2; }), 3, 'should return first found `value`'); + strictEqual(_.find(array, function() { return false; }), void 0, 'should return `undefined` if `value` is not found'); }); test('collections: detect', function() {