Skip to content

Commit d10dc07

Browse files
authored
fix(require-top-level-describe): import function that actually exists (#763)
1 parent 8cdbfd5 commit d10dc07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rules/require-top-level-describe.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { TSESTree } from '@typescript-eslint/experimental-utils';
22
import {
33
createRule,
44
isDescribe,
5-
isDescribeEach,
5+
isEachCall,
66
isHook,
77
isTestCase,
88
} from './utils';
@@ -50,7 +50,7 @@ export default createRule({
5050
}
5151
},
5252
'CallExpression:exit'(node: TSESTree.CallExpression) {
53-
if (isDescribe(node) && !isDescribeEach(node)) {
53+
if (isDescribe(node) && !isEachCall(node)) {
5454
numberOfDescribeBlocks--;
5555
}
5656
},

0 commit comments

Comments
 (0)