From 287839e49856719fd7700a3fdc1141dc35d0e284 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 12 Apr 2014 18:57:39 -0700 Subject: [PATCH] Add test for custom `_.indexOf` methods, `_.contains`, and objects. --- test/test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index d973a01b8..f35a5dbd9 100644 --- a/test/test.js +++ b/test/test.js @@ -3688,14 +3688,15 @@ return new Foo; }); - test('`_.contains` should work with a custom `_.indexOf` method', 1, function() { + test('`_.contains` should work with a custom `_.indexOf` method', 2, function() { if (!isModularize) { _.indexOf = custom; ok(_.contains(array, new Foo)); + ok(_.contains({ 'a': 1, 'b': new Foo, 'c': 3 }, new Foo)); _.indexOf = indexOf; } else { - skipTest(); + skipTest(2); } });