We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5934b3b commit 7a77bfdCopy full SHA for 7a77bfd
src/rules/valid-expect.ts
@@ -33,8 +33,7 @@ const getPromiseCallExpressionNode = (node: TSESTree.Node) => {
33
if (
34
node.type === AST_NODE_TYPES.CallExpression &&
35
node.callee.type === AST_NODE_TYPES.MemberExpression &&
36
- isSupportedAccessor(node.callee.object) &&
37
- getAccessorValue(node.callee.object) === 'Promise' &&
+ isSupportedAccessor(node.callee.object, 'Promise') &&
38
node.parent
39
) {
40
return node;
0 commit comments