Skip to content

Commit 82e7ad0

Browse files
committed
refactor: rename findImportedTestingLibraryUtilSpecifier in helpers
1 parent d6b4247 commit 82e7ad0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/create-testing-library-rule/detect-testing-library-utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ type IsDebugUtilFn = (identifierNode: TSESTree.Identifier) => boolean;
8383
type IsPresenceAssertFn = (node: TSESTree.MemberExpression) => boolean;
8484
type IsAbsenceAssertFn = (node: TSESTree.MemberExpression) => boolean;
8585
type CanReportErrorsFn = () => boolean;
86-
type FindImportedUtilSpecifierFn = (
86+
type FindImportedTestingLibraryUtilSpecifierFn = (
8787
specifierName: string
8888
) => TSESTree.ImportClause | TSESTree.Identifier | undefined;
8989
type IsNodeComingFromTestingLibraryFn = (
@@ -117,7 +117,7 @@ export interface DetectionHelpers {
117117
isPresenceAssert: IsPresenceAssertFn;
118118
isAbsenceAssert: IsAbsenceAssertFn;
119119
canReportErrors: CanReportErrorsFn;
120-
findImportedUtilSpecifier: FindImportedUtilSpecifierFn;
120+
findImportedTestingLibraryUtilSpecifier: FindImportedTestingLibraryUtilSpecifierFn;
121121
isNodeComingFromTestingLibrary: IsNodeComingFromTestingLibraryFn;
122122
}
123123

@@ -750,7 +750,7 @@ export function detectTestingLibraryUtils<
750750
/**
751751
* Finds the import util specifier related to Testing Library for a given name.
752752
*/
753-
const findImportedTestingLibraryUtilSpecifier: FindImportedUtilSpecifierFn = (
753+
const findImportedTestingLibraryUtilSpecifier: FindImportedTestingLibraryUtilSpecifierFn = (
754754
specifierName
755755
): TSESTree.ImportClause | TSESTree.Identifier | undefined => {
756756
const node = getCustomModuleImportNode() ?? getTestingLibraryImportNode();
@@ -902,7 +902,7 @@ export function detectTestingLibraryUtils<
902902
isPresenceAssert,
903903
isAbsenceAssert,
904904
canReportErrors,
905-
findImportedUtilSpecifier: findImportedTestingLibraryUtilSpecifier,
905+
findImportedTestingLibraryUtilSpecifier,
906906
isNodeComingFromTestingLibrary,
907907
};
908908

0 commit comments

Comments
 (0)