Skip to content

Commit

Permalink
Rename isStaticallyAnalyzableTitle to isStaticallyAnalyzableDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma committed Dec 13, 2021
1 parent 4788035 commit 76b3312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/no-empty-description.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function isIdentifier(node) {
return node && node.type === 'Identifier';
}

function isStaticallyAnalyzableTitle(node, extractedText) {
function isStaticallyAnalyzableDescription(node, extractedText) {
if (extractedText === null) {
return !(isTemplateString(node) || isIdentifier(node));
}
Expand Down Expand Up @@ -71,7 +71,7 @@ module.exports = {
const description = mochaCallExpression.arguments[0];
const text = getStringIfConstant(description, context.getScope());

if (!isStaticallyAnalyzableTitle(description, text)) {
if (!isStaticallyAnalyzableDescription(description, text)) {
return true;
}

Expand Down

0 comments on commit 76b3312

Please sign in to comment.