eslint-plugin-jest
Advanced tools
Comparing version 21.27.0 to 21.27.1
{ | ||
"name": "eslint-plugin-jest", | ||
"version": "21.27.0", | ||
"version": "21.27.1", | ||
"description": "Eslint rules for Jest", | ||
@@ -5,0 +5,0 @@ "repository": "jest-community/eslint-plugin-jest", |
@@ -16,2 +16,3 @@ 'use strict'; | ||
'window.fetch = jest.fn', | ||
'Date.now = fn()', | ||
'obj.mock = jest.something()', | ||
@@ -18,0 +19,0 @@ 'const mock = jest.fn()', |
@@ -7,3 +7,6 @@ 'use strict'; | ||
const getJestFnCall = node => { | ||
if (node.type !== 'CallExpression' && node.type !== 'MemberExpression') { | ||
if ( | ||
(node.type !== 'CallExpression' && node.type !== 'MemberExpression') || | ||
(node.callee && node.callee.type !== 'MemberExpression') | ||
) { | ||
return null; | ||
@@ -10,0 +13,0 @@ } |
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
188685
5363