Add _.has unit test.

Former-commit-id: 3334651f8d29e6aa006184846b128acd006157ef
This commit is contained in:
John-David Dalton
2013-05-10 22:57:08 -07:00
parent 5ff9b02c89
commit 6d86b3a950

View File

@@ -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() {