From 6eb19ace734065530f4df87480ecc795b929d781 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Fri, 25 May 2012 20:27:39 -0400 Subject: [PATCH] corrections to tests for `_.find` as requested by @braddunbar --- test/collections.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() {