From 15109f801e0ddc823ac8b17f7e45c337108e1d36 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 18 Jul 2013 08:33:59 -0700 Subject: [PATCH] Add `_.mixin` build test. Former-commit-id: e6fc1d3384519c2678f875b083222c83519f7123 --- test/test-build.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test-build.js b/test/test-build.js index 8ef43381a..9ffae8c45 100644 --- a/test/test-build.js +++ b/test/test-build.js @@ -1054,6 +1054,10 @@ equal(lodash.max('abc'), -Infinity, '_.max should return `-Infinity` for strings: ' + basename); equal(lodash.min('abc'), Infinity, '_.min should return `Infinity` for strings: ' + basename); + object = {}; + lodash.mixin(object, { 'a': function(a) { return a[0]; } }); + equal('a' in object, false, '_.mixin should not accept a destination object: ' + basename); + // avoid issues comparing objects with `deepEqual` object = { 'a': 1, 'b': 2, 'c': 3 }; actual = lodash.omit(object, function(value) { return value == 3; });