diff --git a/test/test.js b/test/test.js index 5ff378c08..7155a425d 100644 --- a/test/test.js +++ b/test/test.js @@ -1282,6 +1282,18 @@ /*--------------------------------------------------------------------------*/ + QUnit.module('lodash.has'); + + (function() { + test('should return `false` for primitives', function() { + _.each(falsey.concat(1, 'a'), function(value) { + strictEqual(_.has(value, 'valueOf'), false); + }); + }); + }()); + + /*--------------------------------------------------------------------------*/ + QUnit.module('lodash.indexOf'); (function() {