Skip to content

Commit 6b5ff55

Browse files
committed
refactor: self code review
1 parent 1e3dc9d commit 6b5ff55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/fire-event.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ function setNativeStateIfNeeded(element: ReactTestInstance, eventName: string, v
173173
}
174174
}
175175

176-
function tryGetContentOffset(value: unknown): Point | null {
176+
function tryGetContentOffset(event: unknown): Point | null {
177177
try {
178178
// @ts-expect-error: try to extract contentOffset from the event value
179-
const contentOffset = value?.nativeEvent?.contentOffset;
179+
const contentOffset = event?.nativeEvent?.contentOffset;
180180
const x = contentOffset?.x;
181181
const y = contentOffset?.y;
182182
if (typeof x === 'number' || typeof y === 'number') {

src/user-event/setup/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export interface UserEventInstance {
9595
* input.
9696
*
9797
* The exact events sent depend on the props of the TextInput (`editable`,
98-
* `multiline`, value, defaultValue, etc) and passed options.
98+
* `multiline`, etc) and passed options.
9999
*
100100
* @param element TextInput element to type on
101101
* @param text Text to type

0 commit comments

Comments
 (0)