forked from jestjs/jest
/
printSnapshot.test.ts.snap
658 lines (509 loc) · 19.5 KB
/
printSnapshot.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`matcher error toMatchInlineSnapshot Expected properties must be an object (array) with snapshot 1`] = `
<d>expect(</><r>received</><d>).</>toMatchInlineSnapshot<d>(</><g>properties</><d>, </>snapshot<d>)</>
<b>Matcher error</>: Expected <g>properties</> must be an object
Expected properties has type: array
Expected properties has value: <g>[]</>
`;
exports[`matcher error toMatchInlineSnapshot Expected properties must be an object (non-null) without snapshot 1`] = `
<d>expect(</><r>received</><d>).</>toMatchInlineSnapshot<d>(</><g>properties</><d>)</>
<b>Matcher error</>: Expected <g>properties</> must be an object
Expected properties has type: boolean
Expected properties has value: <g>false</>
`;
exports[`matcher error toMatchInlineSnapshot Expected properties must be an object (null) with snapshot 1`] = `
<d>expect(</><r>received</><d>).</>toMatchInlineSnapshot<d>(</><g>properties</><d>, </>snapshot<d>)</>
<b>Matcher error</>: Expected <g>properties</> must be an object
Expected properties has value: <g>null</>
`;
exports[`matcher error toMatchInlineSnapshot Inline snapshot must be a string 1`] = `
<d>expect(</><r>received</><d>).</>resolves<d>.</>toMatchInlineSnapshot<d>(</><g>properties</><d>, </>snapshot<d>)</>
<b>Matcher error</>: Inline snapshot must be a string
Inline snapshot has type: symbol
Inline snapshot has value: Symbol(is not a string)
`;
exports[`matcher error toMatchInlineSnapshot Snapshot matchers cannot be used with not 1`] = `
<d>expect(</><r>received</><d>).</>not<d>.</>toMatchInlineSnapshot<d>(</><g>snapshot</><d>)</>
<b>Matcher error</>: Snapshot matchers cannot be used with <b>not</>
`;
exports[`matcher error toMatchSnapshot Expected properties must be an object (array) 1`] = `
<d>expect(</><r>received</><d>).</>toMatchSnapshot<d>(</><g>properties</><d>)</>
<b>Matcher error</>: Expected <g>properties</> must be an object
Expected properties has type: array
Expected properties has value: <g>[]</>
`;
exports[`matcher error toMatchSnapshot Expected properties must be an object (non-null) 1`] = `
<d>expect(</><r>received</><d>).</>toMatchSnapshot<d>(</><g>properties</><d>)</>
<b>Matcher error</>: Expected <g>properties</> must be an object
Expected properties has type: function
Expected properties has value: <g>[Function]</>
`;
exports[`matcher error toMatchSnapshot Expected properties must be an object (null) with hint 1`] = `
<d>expect(</><r>received</><d>).</>toMatchSnapshot<d>(</><g>properties</><d>, </><b>hint</><d>)</>
<b>Matcher error</>: Expected <g>properties</> must be an object
Expected properties has value: <g>null</>
To provide a hint without properties: toMatchSnapshot('hint')
`;
exports[`matcher error toMatchSnapshot Expected properties must be an object (null) without hint 1`] = `
<d>expect(</><r>received</><d>).</>toMatchSnapshot<d>(</><g>properties</><d>)</>
<b>Matcher error</>: Expected <g>properties</> must be an object
Expected properties has value: <g>null</>
`;
exports[`matcher error toMatchSnapshot Snapshot state must be initialized 1`] = `
<d>expect(</><r>received</><d>).</>resolves<d>.</>toMatchSnapshot<d>(</><b>hint</><d>)</>
Snapshot state must be initialized
Snapshot state has value: undefined
`;
exports[`matcher error toMatchSnapshot received value must be an object (non-null) 1`] = `
<d>expect(</><r>received</><d>).</>toMatchSnapshot<d>(</><g>properties</><d>)</>
<b>Matcher error</>: <r>received</> value must be an object when the matcher has <g>properties</>
Received has type: string
Received has value: <r>"string"</>
`;
exports[`matcher error toMatchSnapshot received value must be an object (null) 1`] = `
<d>expect(</><r>received</><d>).</>toMatchSnapshot<d>(</><g>properties</><d>)</>
<b>Matcher error</>: <r>received</> value must be an object when the matcher has <g>properties</>
Received has value: <r>null</>
`;
exports[`matcher error toThrowErrorMatchingInlineSnapshot Inline snapshot must be a string 1`] = `
<d>expect(</><r>received</><d>).</>toThrowErrorMatchingInlineSnapshot<d>(</>snapshot<d>)</>
<b>Matcher error</>: Inline snapshot must be a string
Inline snapshot has type: number
Inline snapshot has value: 404
`;
exports[`matcher error toThrowErrorMatchingInlineSnapshot Snapshot state must be initialized 1`] = `
<d>expect(</><r>received</><d>).</>rejects<d>.</>toThrowErrorMatchingInlineSnapshot<d>(</><g>snapshot</><d>)</>
Snapshot state must be initialized
Snapshot state has value: undefined
`;
exports[`matcher error toThrowErrorMatchingSnapshot Received value must be a function 1`] = `
<d>expect(</><r>received</><d>).</>toThrowErrorMatchingSnapshot<d>()</>
<b>Matcher error</>: <r>received</> value must be a function
Received has type: number
Received has value: <r>13</>
`;
exports[`matcher error toThrowErrorMatchingSnapshot Snapshot matchers cannot be used with not 1`] = `
<d>expect(</><r>received</><d>).</>not<d>.</>toThrowErrorMatchingSnapshot<d>(</><b>hint</><d>)</>
<b>Matcher error</>: Snapshot matchers cannot be used with <b>not</>
`;
exports[`other error toThrowErrorMatchingSnapshot Received function did not throw 1`] = `
<d>expect(</><r>received</><d>).</>toThrowErrorMatchingSnapshot<d>()</>
Received function did not throw
`;
exports[`pass false toMatchInlineSnapshot with properties equals false with snapshot 1`] = `
<d>expect(</><r>received</><d>).</>toMatchInlineSnapshot<d>(</><g>properties</><d>, </>snapshot<d>)</>
Snapshot name: \`with properties 1\`
<g>- Expected properties - 1</>
<r>+ Received value + 1</>
<d> Object {</>
<g>- "id": "abcdef",</>
<r>+ "id": "abcdefg",</>
<d> }</>
`;
exports[`pass false toMatchInlineSnapshot with properties equals false without snapshot 1`] = `
<d>expect(</><r>received</><d>).</>toMatchInlineSnapshot<d>(</><g>properties</><d>)</>
Snapshot name: \`with properties 1\`
<g>- Expected properties - 1</>
<r>+ Received value + 1</>
<d> Object {</>
<g>- "id": "abcdef",</>
<r>+ "id": "abcdefg",</>
<d> }</>
`;
exports[`pass false toMatchInlineSnapshot with properties equals true 1`] = `
<d>expect(</><t>received</><d>).</>toMatchInlineSnapshot<d>(</>properties<d>, </><m>snapshot</><d>)</>
Snapshot name: \`with properties 1\`
<m>- Snapshot - 1</>
<t>+ Received + 1</>
<d> Object {</>
<d> "id": "abcdef",</>
<m>- "text": "inline snapshot",</>
<t>+ "text": "received",</>
<d> "type": "ADD_ITEM",</>
<d> }</>
`;
exports[`pass false toMatchSnapshot New snapshot was not written (multi line) 1`] = `
<d>expect(</><t>received</><d>).</>toMatchSnapshot<d>(</><b>hint</><d>)</>
Snapshot name: \`New snapshot was not written: <b>(CI)</> 1\`
New snapshot was <b>not written</>. The update flag must be explicitly passed to write a new snapshot.
This is likely because this test is run in a continuous integration (CI) environment in which snapshots are not written by default.
Received:
<t>"To write or not to write,</>
<t>that is the question."</>
`;
exports[`pass false toMatchSnapshot New snapshot was not written (single line) 1`] = `
<d>expect(</><t>received</><d>).</>toMatchSnapshot<d>(</><b>hint</><d>)</>
Snapshot name: \`New snapshot was not written: <b>(CI)</> 2\`
New snapshot was <b>not written</>. The update flag must be explicitly passed to write a new snapshot.
This is likely because this test is run in a continuous integration (CI) environment in which snapshots are not written by default.
Received: <t>"Write me if you can!"</>
`;
exports[`pass false toMatchSnapshot with properties equals false isLineDiffable false 1`] = `
<d>expect(</><r>received</><d>).</>toMatchSnapshot<d>(</><g>properties</><d>)</>
Snapshot name: \`with properties 1\`
Expected properties: <g>{"name": "Error"}</>
Received value: <r>[RangeError: Invalid array length]</>
`;
exports[`pass false toMatchSnapshot with properties equals false isLineDiffable true 1`] = `
<d>expect(</><r>received</><d>).</>toMatchSnapshot<d>(</><g>properties</><d>)</>
Snapshot name: \`with properties 1\`
<g>- Expected properties - 1</>
<r>+ Received value + 1</>
<d> Object {</>
<g>- "id": "abcdef",</>
<r>+ "id": "abcdefg",</>
<d> }</>
`;
exports[`pass false toMatchSnapshot with properties equals true 1`] = `
<d>expect(</><t>received</><d>).</>toMatchSnapshot<d>(</>properties<d>, </><b>hint</><d>)</>
Snapshot name: \`with properties: <b>change text value</> 1\`
<m>- Snapshot - 1</>
<t>+ Received + 1</>
<d> Object {</>
<d> "id": "abcdef",</>
<m>- "text": "snapshot",</>
<t>+ "text": "received",</>
<d> "type": "ADD_ITEM",</>
<d> }</>
`;
exports[`pass false toThrowErrorMatchingInlineSnapshot with snapshot 1`] = `
<d>expect(</><t>received</><d>).</>toThrowErrorMatchingInlineSnapshot<d>(</><m>snapshot</><d>)</>
Snapshot name: \`with snapshot 1\`
Snapshot: <m>"inline snapshot"</>
Received: <t>"received"</>
`;
exports[`printPropertiesAndReceived omit missing properties 1`] = `
<g>- Expected properties - 1</>
<r>+ Received value + 0</>
<d> Object {</>
<g>- "hash": Any<String>,</>
<d> "path": Any<String>,</>
<d> }</>
`;
exports[`printPropertiesAndReceived only highlight non passing properties 1`] = `
<g>- Expected properties - 1</>
<r>+ Received value + 1</>
<d> Object {</>
<d> "a": Any<Number>,</>
<g>- "b": Any<Number>,</>
<r>+ "b": "some string",</>
<d> }</>
`;
exports[`printSnapshotAndReceived backtick single line expected and received 1`] = `
Snapshot: <m>"var foo = \`backtick\`;"</>
Received: <t>"var foo = <i>tag</i>\`backtick\`;"</>
`;
exports[`printSnapshotAndReceived empty string expected and received single line 1`] = `
Snapshot: <m>""</>
Received: <t>"single line string"</>
`;
exports[`printSnapshotAndReceived empty string received and expected multi line 1`] = `
<m>- Snapshot - 3</>
<t>+ Received + 0</>
<m>- multi</>
<m>- line</>
<m>- string</>
`;
exports[`printSnapshotAndReceived escape backslash in multi line string 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 2</>
<m>- Forward / slash<i> and b</i>ack \\ slash</>
<t>+ Forward / slash</>
<t>+ <i>B</i>ack \\ slash</>
`;
exports[`printSnapshotAndReceived escape backslash in single line string 1`] = `
Snapshot: <m>"<i>f</i>orward / slash and back \\\\ slash"</>
Received: <t>"<i>F</i>orward / slash and back \\\\ slash"</>
`;
exports[`printSnapshotAndReceived escape double quote marks in string 1`] = `
Snapshot: <m>"What does \\"<i>oo</i>bleck\\" mean?"</>
Received: <t>"What does \\"<i>ew</i>bleck\\" mean?"</>
`;
exports[`printSnapshotAndReceived escape regexp 1`] = `
Snapshot: <m>/\\\\\\\\\\("\\)/g</>
Received: <t>/\\\\\\\\\\("\\)/</>
`;
exports[`printSnapshotAndReceived expand false 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 3</>
<y>@@ -12,7 +12,9 @@</>
<d> ? "number"</>
<d> : T extends boolean</>
<d> ? "boolean"</>
<d> : T extends undefined</>
<d> ? "undefined"</>
<m>- : T extends Function<i> </i>? "function"<i> </i>: "object";</>
<t>+ : T extends Function</>
<t>+ ? "function"</>
<t>+ : "object";</>
<d> ↵</>
`;
exports[`printSnapshotAndReceived expand true 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 3</>
<d> type TypeName<T> =</>
<d> T extends string ? "string" :</>
<d> T extends number ? "number" :</>
<d> T extends boolean ? "boolean" :</>
<d> T extends undefined ? "undefined" :</>
<d> T extends Function ? "function" :</>
<d> "object";</>
<d> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</>
<d> type TypeName<T> = T extends string</>
<d> ? "string"</>
<d> : T extends number</>
<d> ? "number"</>
<d> : T extends boolean</>
<d> ? "boolean"</>
<d> : T extends undefined</>
<d> ? "undefined"</>
<m>- : T extends Function<i> </i>? "function"<i> </i>: "object";</>
<t>+ : T extends Function</>
<t>+ ? "function"</>
<t>+ : "object";</>
<d> ↵</>
`;
exports[`printSnapshotAndReceived fallback to line diff 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 8</>
<t>+ ====================================options=====================================</>
<t>+ parsers: ["flow", "typescript"]</>
<t>+ printWidth: 80</>
<t>+ | printWidth</>
<t>+ =====================================input======================================</>
<d> [...a, ...b,];</>
<d> [...a, ...b];</>
<m>- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</>
<t>+</>
<t>+ =====================================output=====================================</>
<d> [...a, ...b];</>
<d> [...a, ...b];</>
<t>+ ================================================================================</>
`;
exports[`printSnapshotAndReceived has no common after clean up chaff array 1`] = `
<m>- Snapshot - 2</>
<t>+ Received + 2</>
<d> Array [</>
<m>- "delete",</>
<m>- "two",</>
<t>+ "insert",</>
<t>+ "2",</>
<d> ]</>
`;
exports[`printSnapshotAndReceived has no common after clean up chaff string single line 1`] = `
Snapshot: <m>"delete"</>
Received: <t>"insert"</>
`;
exports[`printSnapshotAndReceived ignore indentation markup delete 1`] = `
<m>- Snapshot - 2</>
<t>+ Received + 0</>
<d> <div></>
<m>- <div></>
<d> <h3></>
<d> Ignore indentation for most serialized objects</>
<d> </h3></>
<d> <p></>
<d> Call<Y> </Y></>
<d> <code></>
<d> diffLinesUnified2</>
<d> </code></>
<d> to compare without indentation</>
<d> </p></>
<m>- </div></>
<d> </div></>
`;
exports[`printSnapshotAndReceived ignore indentation markup fall back 1`] = `
<m>- Snapshot - 5</>
<t>+ Received + 7</>
<m>- <pre</>
<m>- className="language-js"</>
<m>- ></>
<m>- for (key in foo) {</>
<t>+ <div></>
<t>+ <pre</>
<t>+ className="language-js"</>
<t>+ ></>
<t>+ for (key in foo) {</>
<d> if (Object.prototype.hasOwnProperty.call(foo, key)) {</>
<d> doSomething(key);</>
<d> }</>
<d> }</>
<m>- </pre></>
<t>+ </pre></>
<t>+ </div></>
`;
exports[`printSnapshotAndReceived ignore indentation markup insert 1`] = `
<m>- Snapshot - 0</>
<t>+ Received + 7</>
<d> <th></>
<t>+ <span></>
<d> when</>
<t>+ </span></>
<t>+ <abbr</>
<t>+ title="ascending from older to newer"</>
<t>+ ></>
<t>+ ↓</>
<t>+ </abbr></>
<d> </th></>
`;
exports[`printSnapshotAndReceived ignore indentation object delete 1`] = `
<m>- Snapshot - 2</>
<t>+ Received + 0</>
<d> Object {</>
<m>- "payload": Object {</>
<d> "text": "Ignore indentation in snapshot",</>
<d> "time": "2019-11-11",</>
<m>- },</>
<d> "type": "CREATE_ITEM",</>
<d> }</>
`;
exports[`printSnapshotAndReceived ignore indentation object insert 1`] = `
<m>- Snapshot - 0</>
<t>+ Received + 2</>
<d> Object {</>
<t>+ "payload": Object {</>
<d> "text": "Ignore indentation in snapshot",</>
<d> "time": "2019-11-11",</>
<t>+ },</>
<d> "type": "CREATE_ITEM",</>
<d> }</>
`;
exports[`printSnapshotAndReceived isLineDiffable false asymmetric matcher 1`] = `
Snapshot: <m>null</>
Received: <t>Object {</>
<t> "asymmetricMatch": [Function],</>
<t>}</>
`;
exports[`printSnapshotAndReceived isLineDiffable false boolean 1`] = `
Snapshot: <m>true</>
Received: <t>false</>
`;
exports[`printSnapshotAndReceived isLineDiffable false date 1`] = `
Snapshot: <m>2019-09-19T00:00:00.000Z</>
Received: <t>2019-09-20T00:00:00.000Z</>
`;
exports[`printSnapshotAndReceived isLineDiffable false error 1`] = `
Snapshot: <m>[Error: Cannot spread fragment "NameAndAppearances" within itself.]</>
Received: <t>[Error: Cannot spread fragment "NameAndAppearancesAndFriends" within itself.]</>
`;
exports[`printSnapshotAndReceived isLineDiffable false function 1`] = `
Snapshot: <m>undefined</>
Received: <t>[Function]</>
`;
exports[`printSnapshotAndReceived isLineDiffable false number 1`] = `
Snapshot: <m>-0</>
Received: <t>NaN</>
`;
exports[`printSnapshotAndReceived isLineDiffable true array 1`] = `
<m>- Snapshot - 0</>
<t>+ Received + 2</>
<d> Array [</>
<d> Object {</>
<t>+ "_id": "b14680dec683e744ada1f2fe08614086",</>
<d> "code": 4011,</>
<d> "weight": 2.13,</>
<d> },</>
<d> Object {</>
<t>+ "_id": "7fc63ff01769c4fa7d9279e97e307829",</>
<d> "code": 4019,</>
<d> "count": 4,</>
<d> },</>
<d> ]</>
`;
exports[`printSnapshotAndReceived isLineDiffable true object 1`] = `
<m>- Snapshot - 2</>
<t>+ Received + 3</>
<d> Object {</>
<d> "props": Object {</>
<m>- "className": "logo",</>
<m>- "src": "/img/jest.png",</>
<t>+ "alt": "Jest logo",</>
<t>+ "class": "logo",</>
<t>+ "src": "/img/jest.svg",</>
<d> },</>
<d> "type": "img",</>
<d> }</>
`;
exports[`printSnapshotAndReceived isLineDiffable true single line expected and multi line received 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 3</>
<m>- Array []</>
<t>+ Array [</>
<t>+ 0,</>
<t>+ ]</>
`;
exports[`printSnapshotAndReceived isLineDiffable true single line expected and received 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 1</>
<m>- Array []</>
<t>+ Object {}</>
`;
exports[`printSnapshotAndReceived multi line small change in one line and other is unchanged 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 1</>
<m>- There is no route defined for key <i>'</i>Settings<i>'</i>.</>
<t>+ There is no route defined for key Settings.</>
<d> Must be one of: 'Home'</>
`;
exports[`printSnapshotAndReceived multi line small changes 1`] = `
<m>- Snapshot - 7</>
<t>+ Received + 7</>
<m>- 6<i>9</i> | </>
<t>+ 6<i>8</i> | </>
<m>- <i>70</i> | test('assert.doesNotThrow', () => {</>
<t>+ <i>69</i> | test('assert.doesNotThrow', () => {</>
<m>- > 7<i>1</i> | assert.doesNotThrow(() => {</>
<t>+ > 7<i>0</i> | assert.doesNotThrow(() => {</>
<d> | ^</>
<m>- 7<i>2</i> | throw Error('err!');</>
<t>+ 7<i>1</i> | throw Error('err!');</>
<m>- 7<i>3</i> | });</>
<t>+ 7<i>2</i> | });</>
<m>- 7<i>4</i> | });</>
<t>+ 7<i>3</i> | });</>
<m>- at Object.doesNotThrow (__tests__/assertionError.test.js:7<i>1</i>:10)</>
<t>+ at Object.doesNotThrow (__tests__/assertionError.test.js:7<i>0</i>:10)</>
`;
exports[`printSnapshotAndReceived single line large changes 1`] = `
Snapshot: <m>"<i>A</i>rray length<i> must be a finite positive integer</i>"</>
Received: <t>"<i>Invalid a</i>rray length"</>
`;
exports[`printSnapshotAndReceived without serialize backtick single line expected and multi line received 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 2</>
<m>- var foo = \`backtick\`;</>
<t>+ var foo = \`back</>
<t>+ tick\`;</>
`;
exports[`printSnapshotAndReceived without serialize backtick single line expected and received 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 1</>
<m>- var foo = \`backtick\`;</>
<t>+ var foo = \`back<i>\${x}</i>tick\`;</>
`;
exports[`printSnapshotAndReceived without serialize has no common after clean up chaff multi line 1`] = `
<m>- Snapshot - 2</>
<t>+ Received + 2</>
<m>- delete</>
<m>- two</>
<t>+ insert</>
<t>+ 2</>
`;
exports[`printSnapshotAndReceived without serialize has no common after clean up chaff single line 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 1</>
<m>- delete</>
<t>+ insert</>
`;
exports[`printSnapshotAndReceived without serialize prettier/pull/5590 1`] = `
<m>- Snapshot - 1</>
<t>+ Received + 1</>
<y>@@ -4,8 +4,8 @@</>
<d> | printWidth</>
<d> =====================================input======================================</>
<d> <img src="test.png" alt='John "ShotGun" Nelson'></>
<d> =====================================output=====================================</>
<m>- <img src="test.png" alt=<i>"</i>John <i>"</i>ShotGun<i>"</i> Nelson<i>"</i> /></>
<t>+ <img src="test.png" alt=<i>'</i>John <i>"</i>ShotGun<i>"</i> Nelson<i>'</i> /></>
<d> ================================================================================</>
`;