Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(require-top-level-describe): import function that actually exists (
  • Loading branch information
G-Rath committed Feb 17, 2021
1 parent 8cdbfd5 commit d10dc07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/require-top-level-describe.ts
Expand Up @@ -2,7 +2,7 @@ import { TSESTree } from '@typescript-eslint/experimental-utils';
import {
createRule,
isDescribe,
isDescribeEach,
isEachCall,
isHook,
isTestCase,
} from './utils';
Expand Down Expand Up @@ -50,7 +50,7 @@ export default createRule({
}
},
'CallExpression:exit'(node: TSESTree.CallExpression) {
if (isDescribe(node) && !isDescribeEach(node)) {
if (isDescribe(node) && !isEachCall(node)) {
numberOfDescribeBlocks--;
}
},
Expand Down

0 comments on commit d10dc07

Please sign in to comment.