Skip to content

Commit 5a39b8e

Browse files
committed
chore: update snapshots
1 parent 1391c34 commit 5a39b8e

File tree

2 files changed

+60
-12
lines changed

2 files changed

+60
-12
lines changed

src/user-event/type/__tests__/__snapshots__/type-managed.test.tsx.snap

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ exports[`type() for managed TextInput supports basic case: input: "Wow" 1`] = `
55
{
66
"name": "pressIn",
77
"payload": {
8+
"currentTarget": {
9+
"measure": [MockFunction],
10+
},
811
"nativeEvent": {
912
"changedTouches": [],
1013
"identifier": 0,
@@ -13,9 +16,10 @@ exports[`type() for managed TextInput supports basic case: input: "Wow" 1`] = `
1316
"pageX": 0,
1417
"pageY": 0,
1518
"target": 0,
16-
"timestamp": 0,
19+
"timestamp": 100100100100,
1720
"touches": [],
1821
},
22+
"persist": [MockFunction],
1923
},
2024
},
2125
{
@@ -29,6 +33,9 @@ exports[`type() for managed TextInput supports basic case: input: "Wow" 1`] = `
2933
{
3034
"name": "pressOut",
3135
"payload": {
36+
"currentTarget": {
37+
"measure": [MockFunction],
38+
},
3239
"nativeEvent": {
3340
"changedTouches": [],
3441
"identifier": 0,
@@ -37,9 +44,10 @@ exports[`type() for managed TextInput supports basic case: input: "Wow" 1`] = `
3744
"pageX": 0,
3845
"pageY": 0,
3946
"target": 0,
40-
"timestamp": 0,
47+
"timestamp": 100100100100,
4148
"touches": [],
4249
},
50+
"persist": [MockFunction],
4351
},
4452
},
4553
{
@@ -166,6 +174,9 @@ exports[`type() for managed TextInput supports rejecting TextInput: input: "ABC"
166174
{
167175
"name": "pressIn",
168176
"payload": {
177+
"currentTarget": {
178+
"measure": [MockFunction],
179+
},
169180
"nativeEvent": {
170181
"changedTouches": [],
171182
"identifier": 0,
@@ -174,9 +185,10 @@ exports[`type() for managed TextInput supports rejecting TextInput: input: "ABC"
174185
"pageX": 0,
175186
"pageY": 0,
176187
"target": 0,
177-
"timestamp": 0,
188+
"timestamp": 100100100100,
178189
"touches": [],
179190
},
191+
"persist": [MockFunction],
180192
},
181193
},
182194
{
@@ -190,6 +202,9 @@ exports[`type() for managed TextInput supports rejecting TextInput: input: "ABC"
190202
{
191203
"name": "pressOut",
192204
"payload": {
205+
"currentTarget": {
206+
"measure": [MockFunction],
207+
},
193208
"nativeEvent": {
194209
"changedTouches": [],
195210
"identifier": 0,
@@ -198,9 +213,10 @@ exports[`type() for managed TextInput supports rejecting TextInput: input: "ABC"
198213
"pageX": 0,
199214
"pageY": 0,
200215
"target": 0,
201-
"timestamp": 0,
216+
"timestamp": 100100100100,
202217
"touches": [],
203218
},
219+
"persist": [MockFunction],
204220
},
205221
},
206222
{

src/user-event/type/__tests__/__snapshots__/type.test.tsx.snap

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ exports[`type() supports backspace: input: "{Backspace}a", defaultValue: "xxx" 1
55
{
66
"name": "pressIn",
77
"payload": {
8+
"currentTarget": {
9+
"measure": [MockFunction],
10+
},
811
"nativeEvent": {
912
"changedTouches": [],
1013
"identifier": 0,
@@ -13,9 +16,10 @@ exports[`type() supports backspace: input: "{Backspace}a", defaultValue: "xxx" 1
1316
"pageX": 0,
1417
"pageY": 0,
1518
"target": 0,
16-
"timestamp": 0,
19+
"timestamp": 100100100100,
1720
"touches": [],
1821
},
22+
"persist": [MockFunction],
1923
},
2024
},
2125
{
@@ -29,6 +33,9 @@ exports[`type() supports backspace: input: "{Backspace}a", defaultValue: "xxx" 1
2933
{
3034
"name": "pressOut",
3135
"payload": {
36+
"currentTarget": {
37+
"measure": [MockFunction],
38+
},
3239
"nativeEvent": {
3340
"changedTouches": [],
3441
"identifier": 0,
@@ -37,9 +44,10 @@ exports[`type() supports backspace: input: "{Backspace}a", defaultValue: "xxx" 1
3744
"pageX": 0,
3845
"pageY": 0,
3946
"target": 0,
40-
"timestamp": 0,
47+
"timestamp": 100100100100,
4148
"touches": [],
4249
},
50+
"persist": [MockFunction],
4351
},
4452
},
4553
{
@@ -133,6 +141,9 @@ exports[`type() supports basic case: input: "abc" 1`] = `
133141
{
134142
"name": "pressIn",
135143
"payload": {
144+
"currentTarget": {
145+
"measure": [MockFunction],
146+
},
136147
"nativeEvent": {
137148
"changedTouches": [],
138149
"identifier": 0,
@@ -141,9 +152,10 @@ exports[`type() supports basic case: input: "abc" 1`] = `
141152
"pageX": 0,
142153
"pageY": 0,
143154
"target": 0,
144-
"timestamp": 0,
155+
"timestamp": 100100100100,
145156
"touches": [],
146157
},
158+
"persist": [MockFunction],
147159
},
148160
},
149161
{
@@ -157,6 +169,9 @@ exports[`type() supports basic case: input: "abc" 1`] = `
157169
{
158170
"name": "pressOut",
159171
"payload": {
172+
"currentTarget": {
173+
"measure": [MockFunction],
174+
},
160175
"nativeEvent": {
161176
"changedTouches": [],
162177
"identifier": 0,
@@ -165,9 +180,10 @@ exports[`type() supports basic case: input: "abc" 1`] = `
165180
"pageX": 0,
166181
"pageY": 0,
167182
"target": 0,
168-
"timestamp": 0,
183+
"timestamp": 100100100100,
169184
"touches": [],
170185
},
186+
"persist": [MockFunction],
171187
},
172188
},
173189
{
@@ -294,6 +310,9 @@ exports[`type() supports defaultValue prop: input: "ab", defaultValue: "xxx" 1`]
294310
{
295311
"name": "pressIn",
296312
"payload": {
313+
"currentTarget": {
314+
"measure": [MockFunction],
315+
},
297316
"nativeEvent": {
298317
"changedTouches": [],
299318
"identifier": 0,
@@ -302,9 +321,10 @@ exports[`type() supports defaultValue prop: input: "ab", defaultValue: "xxx" 1`]
302321
"pageX": 0,
303322
"pageY": 0,
304323
"target": 0,
305-
"timestamp": 0,
324+
"timestamp": 100100100100,
306325
"touches": [],
307326
},
327+
"persist": [MockFunction],
308328
},
309329
},
310330
{
@@ -318,6 +338,9 @@ exports[`type() supports defaultValue prop: input: "ab", defaultValue: "xxx" 1`]
318338
{
319339
"name": "pressOut",
320340
"payload": {
341+
"currentTarget": {
342+
"measure": [MockFunction],
343+
},
321344
"nativeEvent": {
322345
"changedTouches": [],
323346
"identifier": 0,
@@ -326,9 +349,10 @@ exports[`type() supports defaultValue prop: input: "ab", defaultValue: "xxx" 1`]
326349
"pageX": 0,
327350
"pageY": 0,
328351
"target": 0,
329-
"timestamp": 0,
352+
"timestamp": 100100100100,
330353
"touches": [],
331354
},
355+
"persist": [MockFunction],
332356
},
333357
},
334358
{
@@ -422,6 +446,9 @@ exports[`type() supports multiline: input: "{Enter}\\n", multiline: true 1`] = `
422446
{
423447
"name": "pressIn",
424448
"payload": {
449+
"currentTarget": {
450+
"measure": [MockFunction],
451+
},
425452
"nativeEvent": {
426453
"changedTouches": [],
427454
"identifier": 0,
@@ -430,9 +457,10 @@ exports[`type() supports multiline: input: "{Enter}\\n", multiline: true 1`] = `
430457
"pageX": 0,
431458
"pageY": 0,
432459
"target": 0,
433-
"timestamp": 0,
460+
"timestamp": 100100100100,
434461
"touches": [],
435462
},
463+
"persist": [MockFunction],
436464
},
437465
},
438466
{
@@ -446,6 +474,9 @@ exports[`type() supports multiline: input: "{Enter}\\n", multiline: true 1`] = `
446474
{
447475
"name": "pressOut",
448476
"payload": {
477+
"currentTarget": {
478+
"measure": [MockFunction],
479+
},
449480
"nativeEvent": {
450481
"changedTouches": [],
451482
"identifier": 0,
@@ -454,9 +485,10 @@ exports[`type() supports multiline: input: "{Enter}\\n", multiline: true 1`] = `
454485
"pageX": 0,
455486
"pageY": 0,
456487
"target": 0,
457-
"timestamp": 0,
488+
"timestamp": 100100100100,
458489
"touches": [],
459490
},
491+
"persist": [MockFunction],
460492
},
461493
},
462494
{

0 commit comments

Comments
 (0)