Skip to content

Commit 56b9873

Browse files
committed
fix snapshots
1 parent 78b8404 commit 56b9873

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

samples/src/Samples/__snapshots__/Counter.test.ts.snap

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@
33
exports[`Test Counter view state snapshot 1`] = `
44
<div
55
className="counter"
6+
id="sample-counter"
67
>
78
<button
9+
id="counter-sub"
810
onClick={[Function]}
911
>
1012
-
1113
</button>
12-
<span>
14+
<span
15+
id="counter-value"
16+
>
1317
1313
1418
</span>
1519
<button
20+
id="counter-add"
1621
onClick={[Function]}
1722
>
1823
+

samples/src/Samples/__snapshots__/ParentChild.test.ts.snap

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@ exports[`Test ParentChild view state snapshot initial 1`] = `
77
>
88
<div
99
className="counter"
10+
id="sample-counter"
1011
>
1112
<button
13+
id="counter-sub"
1214
onClick={[Function]}
1315
>
1416
-
1517
</button>
16-
<span>
18+
<span
19+
id="counter-value"
20+
>
1721
0
1822
</span>
1923
<button
24+
id="counter-add"
2025
onClick={[Function]}
2126
>
2227
+
@@ -28,16 +33,21 @@ exports[`Test ParentChild view state snapshot initial 1`] = `
2833
>
2934
<div
3035
className="counter"
36+
id="sample-counter"
3137
>
3238
<button
39+
id="counter-sub"
3340
onClick={[Function]}
3441
>
3542
-
3643
</button>
37-
<span>
44+
<span
45+
id="counter-value"
46+
>
3847
0
3948
</span>
4049
<button
50+
id="counter-add"
4151
onClick={[Function]}
4252
>
4353
+
@@ -49,16 +59,21 @@ exports[`Test ParentChild view state snapshot initial 1`] = `
4959
>
5060
<div
5161
className="counter"
62+
id="sample-counter"
5263
>
5364
<button
65+
id="counter-sub"
5466
onClick={[Function]}
5567
>
5668
-
5769
</button>
58-
<span>
70+
<span
71+
id="counter-value"
72+
>
5973
0
6074
</span>
6175
<button
76+
id="counter-add"
6277
onClick={[Function]}
6378
>
6479
+

0 commit comments

Comments
 (0)