Skip to content

Commit e3cc1d2

Browse files
committed
refactor: tweaks
1 parent 44b3a36 commit e3cc1d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/user-event/press/press.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export interface PressOptions {
2020
export async function press(this: UserEventInstance, element: ReactTestInstance): Promise<void> {
2121
await basePress(this.config, element, {
2222
type: 'press',
23-
duration: undefined,
2423
});
2524
}
2625

@@ -37,7 +36,7 @@ export async function longPress(
3736

3837
interface BasePressOptions {
3938
type: 'press' | 'longPress';
40-
duration: number | undefined;
39+
duration?: number;
4140
}
4241

4342
const basePress = async (

0 commit comments

Comments
 (0)