mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Add _.has unit test.
Former-commit-id: 3334651f8d29e6aa006184846b128acd006157ef
This commit is contained in:
12
test/test.js
12
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');
|
QUnit.module('lodash.indexOf');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user