From cf13eca58c337849e945331310198088350a27a2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 27 Jan 2013 02:39:18 -0800 Subject: [PATCH] Cleanup deep `_.clone` and `_.where` unit tests. Former-commit-id: b7106461640259ca3bf60c1fabb91b59b241e35f --- test/test.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/test.js b/test/test.js index bb2930d9c..10c18834b 100644 --- a/test/test.js +++ b/test/test.js @@ -343,7 +343,7 @@ ok(_.isEqual(object, clone)); if (_.isObject(object)) { - notStrictEqual(clone, object); + notEqual(clone, object); } else { skipTest(); } @@ -2365,12 +2365,10 @@ }); test('should deep compare `properties` values', function() { - var collection = [ - { 'a': { 'b': 1, 'c': 2 } }, - { 'a': { 'b': 2, 'c': 3 } } - ]; + var collection = [{ 'a': { 'b': 1, 'c': 2 } }], + expected = _.cloneDeep(collection); - deepEqual(_.where(collection, { 'a': { 'b': 1 } }), [{ 'a': { 'b': 1, 'c': 2 } }]); + deepEqual(_.where(collection, { 'a': { 'b': 1 } }), expected); }); }());