Ensure _.mixin does not extend lodash when an object is provided with an empty options object. [closes #650]

This commit is contained in:
John-David Dalton
2014-08-01 16:36:44 -07:00
parent 4dc41749fb
commit faf6584652
2 changed files with 22 additions and 13 deletions

View File

@@ -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;