Add comments to test/test-build.js.

Former-commit-id: ae663d4570c3a464fffbf3090494b070279a24a7
This commit is contained in:
John-David Dalton
2012-10-13 23:39:01 -07:00
parent eb32bd45e7
commit 62e9c7c75a

View File

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