Skip to content

Commit 83989b1

Browse files
author
pierrezimmermann
committed
refactor: use Date.now instead of new Date().getTime()
1 parent 327f1f1 commit 83989b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/user-event/event-builder/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const CommonEventBuilder = {
5050
return {
5151
persist: jest.fn(),
5252
nativeEvent: {
53-
timestamp: new Date().getTime(),
53+
timestamp: Date.now(),
5454
},
5555
currentTarget: { measure: jest.fn() },
5656
};

0 commit comments

Comments
 (0)