mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Make lodash underscore build smaller and rebuild docs.
Former-commit-id: 19405bc4e490588d7a55379974d2d7d81d1cf5f7
This commit is contained in:
@@ -485,7 +485,7 @@
|
||||
(function() {
|
||||
var start = _.once(QUnit.start);
|
||||
|
||||
asyncTest('should not have deep clone', function() {
|
||||
asyncTest('modified methods should work correctly', function() {
|
||||
build(['-s', 'underscore'], function(source, filepath) {
|
||||
var array = [{ 'a': 1 }],
|
||||
basename = path.basename(filepath, '.js'),
|
||||
@@ -494,7 +494,10 @@
|
||||
vm.runInContext(source, context);
|
||||
var lodash = context._;
|
||||
|
||||
ok(lodash.clone(array, true)[0] === array[0], basename);
|
||||
var object = { 'fn': lodash.bind(function() { return this.x; }, { 'x': 1 }) };
|
||||
equal(object.fn(), 1, 'bind: ' + basename);
|
||||
|
||||
ok(lodash.clone(array, true)[0] === array[0], 'clone: ' + basename);
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user