diff --git a/lib/util/ast.js b/lib/util/ast.js index a1e16ea..b36f3ad 100644 --- a/lib/util/ast.js +++ b/lib/util/ast.js @@ -29,10 +29,9 @@ function getNodeName(node) { } function isDescribe(node, additionalSuiteNames = []) { - const describeAliases = getSuiteNames({ modifiers: [ 'skip', 'only' ] }); + const describeAliases = getSuiteNames({ modifiers: [ 'skip', 'only' ], additionalSuiteNames }); - return isCallExpression(node) && - describeAliases.concat(additionalSuiteNames).indexOf(getNodeName(node.callee)) > -1; + return isCallExpression(node) && describeAliases.indexOf(getNodeName(node.callee)) > -1; } function isHookIdentifier(node) {