Skip to content

Commit

Permalink
refactor: apply pr suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
gndelia committed Dec 12, 2020
1 parent 4e4d317 commit e0bf288
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rules/no-wait-for-snapshot.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ASTUtils, TSESTree } from '@typescript-eslint/experimental-utils';
import { createTestingLibraryRule } from '../create-testing-library-rule';
import { ASYNC_UTILS } from '../utils';
import {
findClosestCallExpressionNode,
isMemberExpression,
Expand Down Expand Up @@ -39,7 +38,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
if (
ASTUtils.isIdentifier(callExpression.callee) &&
helpers.isNodeComingFromTestingLibrary(callExpression.callee) &&
ASYNC_UTILS.includes(callExpression.callee.name)
helpers.isAsyncUtil(callExpression.callee)
) {
return callExpression.callee;
}
Expand Down

0 comments on commit e0bf288

Please sign in to comment.