Skip to content

Commit

Permalink
fix(require-top-level-describe): import function that actually exists (
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored 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
Original file line number Diff line number Diff line change
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.