mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Ensure _.mixin does not extend lodash when an object is provided with an empty options object. [closes #650]
This commit is contained in:
@@ -7554,6 +7554,12 @@
|
||||
});
|
||||
});
|
||||
|
||||
test('should not extend lodash when an `object` is provided with an empty `options` object', 1, function() {
|
||||
_.mixin({ 'a': _.noop }, {});
|
||||
ok(!('a' in _));
|
||||
delete _.a;
|
||||
});
|
||||
|
||||
test('should not error for non-object `options` values', 2, function() {
|
||||
var pass = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user