Skip to content

Commit b78b0c3

Browse files
pierrezimmermannbammdjastrzebski
authored and
pierrezimmermann
committed
Update src/user-event/press/utils/warnAboutRealTimers.ts
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
1 parent 0eaa235 commit b78b0c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/user-event/press/utils/warnAboutRealTimers.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ test('logs a warning about usign real timers with user event', () => {
88
expect(mockConsoleWarn.mock.calls[0][0]).toMatchInlineSnapshot(`
99
"It is not recommended to use userEvent without using fake timers
1010
Some events involve duration so your tests may take a long time to run.
11-
For instance calling userEvent.longPress with real timers will take 500ms"
11+
For instance calling userEvent.longPress with real timers will take 500 ms"
1212
`);
1313
});

src/user-event/press/utils/warnAboutRealTimers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export const warnAboutRealTimers = () => {
22
// eslint-disable-next-line no-console
33
console.warn(`It is not recommended to use userEvent without using fake timers
44
Some events involve duration so your tests may take a long time to run.
5-
For instance calling userEvent.longPress with real timers will take 500ms`);
5+
For instance calling userEvent.longPress with real timers will take 500 ms`);
66
};

0 commit comments

Comments
 (0)