eslint-plugin-jest
Advanced tools
Comparing version 22.3.1 to 22.3.2
{ | ||
"name": "eslint-plugin-jest", | ||
"version": "22.3.1", | ||
"version": "22.3.2", | ||
"description": "Eslint rules for Jest", | ||
@@ -5,0 +5,0 @@ "repository": "jest-community/eslint-plugin-jest", |
@@ -97,2 +97,17 @@ 'use strict'; | ||
}, | ||
{ | ||
code: ['it(`it1`, () => {});', 'it(`it2`, () => {});'].join('\n'), | ||
env: { | ||
es6: true, | ||
}, | ||
}, | ||
{ | ||
code: [ | ||
'describe(`describe1`, () => {});', | ||
'describe(`describe2`, () => {});', | ||
].join('\n'), | ||
env: { | ||
es6: true, | ||
}, | ||
}, | ||
], | ||
@@ -99,0 +114,0 @@ |
@@ -53,2 +53,10 @@ 'use strict'; | ||
const getArgValue = arg => { | ||
if (arg.type === 'TemplateLiteral') { | ||
return arg.quasis[0].value.raw; | ||
} | ||
return arg.value; | ||
}; | ||
module.exports = { | ||
@@ -72,3 +80,3 @@ meta: { | ||
} | ||
const title = node.arguments[0].value; | ||
const title = getArgValue(firstArgument); | ||
handleTestCaseTitles(context, currentLayer.testTitles, node, title); | ||
@@ -75,0 +83,0 @@ handleDescribeBlockTitles( |
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
203960
5878