Skip to content

Commit 0eaa235

Browse files
author
pierrezimmermann
committed
refactor: fix typo in some longpress test names
1 parent e99bb8e commit 0eaa235

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/user-event/press/__tests__/longPress.real-timers.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('userEvent.longPress with real timers', () => {
2727
expect(mockOnLongPress).toHaveBeenCalled();
2828
});
2929

30-
test('calls onLongPress when duration is greater than specified longPressDelay', async () => {
30+
test('calls onLongPress when duration is greater than specified delayLongPress', async () => {
3131
const mockOnLongPress = jest.fn();
3232
const mockOnPress = jest.fn();
3333
const user = userEvent.setup();
@@ -50,7 +50,7 @@ describe('userEvent.longPress with real timers', () => {
5050
expect(mockOnPress).not.toHaveBeenCalled();
5151
});
5252

53-
test('does not calls onLongPress when duration is lesser than specified longPressDelay', async () => {
53+
test('does not calls onLongPress when duration is lesser than specified delayLongPress', async () => {
5454
const mockOnLongPress = jest.fn();
5555
const mockOnPress = jest.fn();
5656
const user = userEvent.setup();

src/user-event/press/__tests__/longPress.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('userEvent.longPress with fake timers', () => {
7171
`);
7272
});
7373

74-
test('calls onLongPress when duration is greater than specified onLongPressDelay', async () => {
74+
test('calls onLongPress when duration is greater than specified delayLongPress', async () => {
7575
const mockOnLongPress = jest.fn();
7676
const mockOnPress = jest.fn();
7777
const user = userEvent.setup();
@@ -94,7 +94,7 @@ describe('userEvent.longPress with fake timers', () => {
9494
expect(mockOnPress).not.toHaveBeenCalled();
9595
});
9696

97-
test('does not calls onLongPress when duration is lesser than specified onLongPressDelay', async () => {
97+
test('does not calls onLongPress when duration is lesser than specified delayLongPress', async () => {
9898
const mockOnLongPress = jest.fn();
9999
const mockOnPress = jest.fn();
100100
const user = userEvent.setup();

0 commit comments

Comments
 (0)