Skip to content

Commit 7a8eb26

Browse files
authored
test: fix snapshot tests (#337)
1 parent 061930a commit 7a8eb26

File tree

6 files changed

+33
-0
lines changed

6 files changed

+33
-0
lines changed

src/native/__tests__/__snapshots__/snapshots.test.tsx.snap

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,17 @@ exports[`ContentLoader snapshots renders correctly the basic version 1`] = `
7373
<Stop
7474
offset={0}
7575
stopColor="#f5f6f7"
76+
stopOpacity={1}
7677
/>
7778
<Stop
7879
offset={0.5}
7980
stopColor="#eee"
81+
stopOpacity={1}
8082
/>
8183
<Stop
8284
offset={1}
8385
stopColor="#f5f6f7"
86+
stopOpacity={1}
8487
/>
8588
</LinearGradient>
8689
</Defs>
@@ -124,14 +127,17 @@ exports[`ContentLoader snapshots renders correctly with beforeMask 1`] = `
124127
<Stop
125128
offset={0}
126129
stopColor="#f5f6f7"
130+
stopOpacity={1}
127131
/>
128132
<Stop
129133
offset={0.5}
130134
stopColor="#eee"
135+
stopOpacity={1}
131136
/>
132137
<Stop
133138
offset={1}
134139
stopColor="#f5f6f7"
140+
stopOpacity={1}
135141
/>
136142
</LinearGradient>
137143
</Defs>
@@ -169,14 +175,17 @@ exports[`ContentLoader snapshots renders correctly with beforeMask 2`] = `
169175
<Stop
170176
offset={0}
171177
stopColor="#f5f6f7"
178+
stopOpacity={1}
172179
/>
173180
<Stop
174181
offset={0.5}
175182
stopColor="#eee"
183+
stopOpacity={1}
176184
/>
177185
<Stop
178186
offset={1}
179187
stopColor="#f5f6f7"
188+
stopOpacity={1}
180189
/>
181190
</LinearGradient>
182191
</Defs>
@@ -256,14 +265,17 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined 1`] = `
256265
<Stop
257266
offset={0}
258267
stopColor="#f5f6f7"
268+
stopOpacity={1}
259269
/>
260270
<Stop
261271
offset={0.5}
262272
stopColor="#eee"
273+
stopOpacity={1}
263274
/>
264275
<Stop
265276
offset={1}
266277
stopColor="#f5f6f7"
278+
stopOpacity={1}
267279
/>
268280
</LinearGradient>
269281
</Defs>
@@ -343,14 +355,17 @@ exports[`ContentLoader snapshots renders correctly with viewBox defined and size
343355
<Stop
344356
offset={0}
345357
stopColor="#f5f6f7"
358+
stopOpacity={1}
346359
/>
347360
<Stop
348361
offset={0.5}
349362
stopColor="#eee"
363+
stopOpacity={1}
350364
/>
351365
<Stop
352366
offset={1}
353367
stopColor="#f5f6f7"
368+
stopOpacity={1}
354369
/>
355370
</LinearGradient>
356371
</Defs>
@@ -430,14 +445,17 @@ exports[`ContentLoader snapshots renders correctly with viewBox empty 1`] = `
430445
<Stop
431446
offset={0}
432447
stopColor="#f5f6f7"
448+
stopOpacity={1}
433449
/>
434450
<Stop
435451
offset={0.5}
436452
stopColor="#eee"
453+
stopOpacity={1}
437454
/>
438455
<Stop
439456
offset={1}
440457
stopColor="#f5f6f7"
458+
stopOpacity={1}
441459
/>
442460
</LinearGradient>
443461
</Defs>

src/native/__tests__/presets/__snapshots__/BulletListStyle.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,17 @@ exports[`BulletListStyle renders correctly 1`] = `
8585
<Stop
8686
offset={0}
8787
stopColor="#f5f6f7"
88+
stopOpacity={1}
8889
/>
8990
<Stop
9091
offset={0.5}
9192
stopColor="#eee"
93+
stopOpacity={1}
9294
/>
9395
<Stop
9496
offset={1}
9597
stopColor="#f5f6f7"
98+
stopOpacity={1}
9699
/>
97100
</LinearGradient>
98101
</Defs>

src/native/__tests__/presets/__snapshots__/CodeStyle.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,17 @@ exports[`CodeStyle renders correctly 1`] = `
8989
<Stop
9090
offset={0}
9191
stopColor="#f5f6f7"
92+
stopOpacity={1}
9293
/>
9394
<Stop
9495
offset={0.5}
9596
stopColor="#eee"
97+
stopOpacity={1}
9698
/>
9799
<Stop
98100
offset={1}
99101
stopColor="#f5f6f7"
102+
stopOpacity={1}
100103
/>
101104
</LinearGradient>
102105
</Defs>

src/native/__tests__/presets/__snapshots__/FacebookStyle.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,17 @@ exports[`FacebookStyle renders correctly 1`] = `
7373
<Stop
7474
offset={0}
7575
stopColor="#f5f6f7"
76+
stopOpacity={1}
7677
/>
7778
<Stop
7879
offset={0.5}
7980
stopColor="#eee"
81+
stopOpacity={1}
8082
/>
8183
<Stop
8284
offset={1}
8385
stopColor="#f5f6f7"
86+
stopOpacity={1}
8487
/>
8588
</LinearGradient>
8689
</Defs>

src/native/__tests__/presets/__snapshots__/InstagramStyle.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,17 @@ exports[`InstagramStyle renders correctly 1`] = `
6262
<Stop
6363
offset={0}
6464
stopColor="#f5f6f7"
65+
stopOpacity={1}
6566
/>
6667
<Stop
6768
offset={0.5}
6869
stopColor="#eee"
70+
stopOpacity={1}
6971
/>
7072
<Stop
7173
offset={1}
7274
stopColor="#f5f6f7"
75+
stopOpacity={1}
7376
/>
7477
</LinearGradient>
7578
</Defs>

src/native/__tests__/presets/__snapshots__/ListStyle.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,17 @@ exports[`ListStyle renders correctly 1`] = `
8181
<Stop
8282
offset={0}
8383
stopColor="#f5f6f7"
84+
stopOpacity={1}
8485
/>
8586
<Stop
8687
offset={0.5}
8788
stopColor="#eee"
89+
stopOpacity={1}
8890
/>
8991
<Stop
9092
offset={1}
9193
stopColor="#f5f6f7"
94+
stopOpacity={1}
9295
/>
9396
</LinearGradient>
9497
</Defs>

0 commit comments

Comments
 (0)