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(); }); });