From 62e9c7c75a972d2eaa51a0ae6bf26ff29b1d8dd6 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 13 Oct 2012 23:39:01 -0700 Subject: [PATCH] Add comments to test/test-build.js. Former-commit-id: ae663d4570c3a464fffbf3090494b070279a24a7 --- test/test-build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-build.js b/test/test-build.js index c113f6831..a7ea70ba5 100644 --- a/test/test-build.js +++ b/test/test-build.js @@ -631,6 +631,7 @@ return false; }); + ok(lodash.clone(array, true)[0] === array[0], '_.clone: ' + basename); equal(last.value, 2, '_.each: ' + basename); var object = { 'length': 0, 'splice': Array.prototype.splice }; @@ -639,14 +640,13 @@ object = { 'fn': lodash.bind(function(x) { return this.x + x; }, { 'x': 1 }, 1) }; equal(object.fn(), 2, '_.bind: ' + basename); + // avoid issues comparing objects with `deepEqual` object = { 'a': 1, 'b': 2, 'c': 3 }; var actual = lodash.omit(object, function(value) { return value == 3; }); deepEqual(_.keys(actual).sort(), ['a', 'b', 'c'], '_.omit: ' + basename); actual = lodash.pick(object, function(value) { return value != 3; }); deepEqual(_.keys(actual), [], '_.pick: ' + basename); - - ok(lodash.clone(array, true)[0] === array[0], '_.clone: ' + basename); start(); }); });