Skip to content

Commit 09d8925

Browse files
committed
refactor: code review changes
1 parent fec9c19 commit 09d8925

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/helpers/matchers/matchLabelText.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function matchAccessibilityLabelledBy(
4444
root,
4545
(node) =>
4646
typeof node.type === 'string' &&
47-
node.props?.nativeID === nativeId &&
47+
node.props.nativeID === nativeId &&
4848
matchTextContent(node, text, options)
4949
).length > 0
5050
);

src/queries/text.ts

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ const queryAllByText = (
6161
matchDeepestOnly: true,
6262
}
6363
);
64-
6564
};
6665

6766
const getMultipleError = (text: TextMatch) =>

0 commit comments

Comments
 (0)