Skip to content

Commit 8b917e2

Browse files
MattAgnthymikee
MattAgn
authored andcommitted
refactor: renamed method in queryAllByTestId
1 parent eee6202 commit 8b917e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/byTestId.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const getNodeByTestId = (node, testID) => {
1111
const queryAllByTestId = (
1212
instance: ReactTestInstance
1313
): ((testId: string | RegExp) => Array<ReactTestInstance>) =>
14-
function getAllByTestIdFn(testId) {
14+
function queryAllByTestIdFn(testId) {
1515
const results = instance
1616
.findAll((node) => getNodeByTestId(node, testId))
1717
.filter((element) => typeof element.type === 'string');

0 commit comments

Comments
 (0)