eslint-plugin-you-dont-need-lodash-underscore
Advanced tools
Comparing version 6.7.0 to 6.7.1
@@ -28,3 +28,3 @@ 'use strict'; | ||
const callee = node.callee; | ||
const objectName = callee.name || (callee.object && callee.object.name); | ||
const objectName = callee.name || (callee.object && callee.object.name) || (callee.object.callee && callee.object.callee.name); | ||
@@ -31,0 +31,0 @@ if (objectName === 'require' && node.arguments.length === 1) { |
{ | ||
"name": "eslint-plugin-you-dont-need-lodash-underscore", | ||
"version": "6.7.0", | ||
"version": "6.7.1", | ||
"description": "Check methods you can use natively without lodash/underscore", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -608,2 +608,29 @@ 'use strict'; | ||
}) | ||
describe('isUndefined', () => { | ||
const definedVariable = 1; //defined variable (will return false) | ||
let undefinedVariable; //undefined variable (will return true) | ||
it('_.isUndefined(definedVariable)', () => { | ||
assert.equal(_.isUndefined(definedVariable), | ||
(definedVariable === undefined)) | ||
}); | ||
it('_(definedVariable).isUndefined()', () => { | ||
assert.equal(_(definedVariable).isUndefined(), | ||
(definedVariable === undefined)) | ||
}); | ||
it('_.isUndefined(undefinedVariable)', () => { | ||
assert.equal(_.isUndefined(undefinedVariable), | ||
(undefinedVariable === undefined)) | ||
}); | ||
it('_(undefinedVariable).isUndefined()', () => { | ||
assert.equal(_(undefinedVariable).isUndefined(), | ||
(undefinedVariable === undefined)) | ||
}); | ||
}); | ||
}) |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112895
1077
2660