Skip to content

Commit 8e77cab

Browse files
committed
Forgot updated snapshots
1 parent 7af223d commit 8e77cab

2 files changed

Lines changed: 178 additions & 106 deletions

File tree

tests/unit/components/SharedComponents/ObservationsFlashList/__snapshots__/ObsGridItem.test.js.snap

Lines changed: 86 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -399,68 +399,104 @@ exports[`ObsGridItem for an observation without a photo should render 1`] = `
399399
{
400400
"aspectRatio": 1,
401401
},
402-
{
403-
"maxHeight": 210,
404-
},
405-
{
406-
"overflow": "hidden",
407-
},
408402
{
409403
"position": "relative",
410404
},
411-
{
412-
"borderBottomLeftRadius": 15,
413-
"borderBottomRightRadius": 15,
414-
"borderTopLeftRadius": 15,
415-
"borderTopRightRadius": 15,
416-
},
417-
{
418-
"width": 200,
419-
},
420-
{
421-
"width": 200,
422-
},
423-
{
424-
"backgroundColor": "#454545",
425-
},
426-
{
427-
"flexShrink": 1,
428-
},
429-
{
430-
"justifyContent": "center",
431-
},
432-
{
433-
"alignItems": "center",
434-
},
435-
{
436-
"backgroundColor": "#454545",
437-
},
438405
],
439406
]
440407
}
441-
testID="IconicTaxonName.iconicTaxonIcon"
442408
>
443-
<Text
444-
allowFontScaling={false}
445-
selectable={false}
409+
<View
446410
style={
447411
[
448-
{
449-
"color": "#BFBFBF33",
450-
"fontSize": 100,
451-
},
452-
undefined,
453-
{
454-
"fontFamily": "INatIcon",
455-
"fontStyle": "normal",
456-
"fontWeight": "normal",
457-
},
458-
{},
412+
[
413+
{
414+
"position": "absolute",
415+
},
416+
{
417+
"width": "100%",
418+
},
419+
{
420+
"height": "100%",
421+
},
422+
],
459423
]
460424
}
461425
>
462-
463-
</Text>
426+
<View
427+
style={
428+
[
429+
[
430+
{
431+
"flexGrow": 1,
432+
},
433+
{
434+
"aspectRatio": 1,
435+
},
436+
{
437+
"maxHeight": 210,
438+
},
439+
{
440+
"overflow": "hidden",
441+
},
442+
{
443+
"position": "relative",
444+
},
445+
{
446+
"borderBottomLeftRadius": 15,
447+
"borderBottomRightRadius": 15,
448+
"borderTopLeftRadius": 15,
449+
"borderTopRightRadius": 15,
450+
},
451+
{
452+
"width": 200,
453+
},
454+
{
455+
"width": 200,
456+
},
457+
{
458+
"backgroundColor": "#454545",
459+
},
460+
{
461+
"flexShrink": 1,
462+
},
463+
{
464+
"justifyContent": "center",
465+
},
466+
{
467+
"alignItems": "center",
468+
},
469+
{
470+
"backgroundColor": "#454545",
471+
},
472+
],
473+
]
474+
}
475+
testID="IconicTaxonName.iconicTaxonIcon"
476+
>
477+
<Text
478+
allowFontScaling={false}
479+
selectable={false}
480+
style={
481+
[
482+
{
483+
"color": "#BFBFBF33",
484+
"fontSize": 100,
485+
},
486+
undefined,
487+
{
488+
"fontFamily": "INatIcon",
489+
"fontStyle": "normal",
490+
"fontWeight": "normal",
491+
},
492+
{},
493+
]
494+
}
495+
>
496+
497+
</Text>
498+
</View>
499+
</View>
464500
</View>
465501
<BVLinearGradient
466502
colors={

tests/unit/components/SharedComponents/__snapshots__/TaxonResult.test.js.snap

Lines changed: 92 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -151,74 +151,110 @@ exports[`TaxonResult should render correctly 1`] = `
151151
{
152152
"aspectRatio": 1,
153153
},
154-
{
155-
"maxHeight": 210,
156-
},
157-
{
158-
"overflow": "hidden",
159-
},
160154
{
161155
"position": "relative",
162156
},
163-
{
164-
"borderBottomLeftRadius": 8,
165-
"borderBottomRightRadius": 8,
166-
"borderTopLeftRadius": 8,
167-
"borderTopRightRadius": 8,
168-
},
169-
{
170-
"height": 62,
171-
},
172-
{
173-
"width": 62,
174-
},
175-
{
176-
"flexShrink": 1,
177-
},
178-
{
179-
"justifyContent": "center",
180-
},
181-
{
182-
"alignItems": "center",
183-
},
184-
{
185-
"borderBottomWidth": 1,
186-
"borderLeftWidth": 1,
187-
"borderRightWidth": 1,
188-
"borderTopWidth": 1,
189-
},
190-
{
191-
"borderBottomColor": "#E8E8E8",
192-
"borderLeftColor": "#E8E8E8",
193-
"borderRightColor": "#E8E8E8",
194-
"borderTopColor": "#E8E8E8",
195-
},
196157
],
197158
]
198159
}
199-
testID="IconicTaxonName.iconicTaxonIcon"
200160
>
201-
<Text
202-
allowFontScaling={false}
203-
selectable={false}
161+
<View
204162
style={
205163
[
206-
{
207-
"color": "rgba(103, 80, 164, 1)",
208-
"fontSize": 22,
209-
},
210-
undefined,
211-
{
212-
"fontFamily": "INatIcon",
213-
"fontStyle": "normal",
214-
"fontWeight": "normal",
215-
},
216-
{},
164+
[
165+
{
166+
"position": "absolute",
167+
},
168+
{
169+
"width": "100%",
170+
},
171+
{
172+
"height": "100%",
173+
},
174+
],
217175
]
218176
}
219177
>
220-
221-
</Text>
178+
<View
179+
style={
180+
[
181+
[
182+
{
183+
"flexGrow": 1,
184+
},
185+
{
186+
"aspectRatio": 1,
187+
},
188+
{
189+
"maxHeight": 210,
190+
},
191+
{
192+
"overflow": "hidden",
193+
},
194+
{
195+
"position": "relative",
196+
},
197+
{
198+
"borderBottomLeftRadius": 8,
199+
"borderBottomRightRadius": 8,
200+
"borderTopLeftRadius": 8,
201+
"borderTopRightRadius": 8,
202+
},
203+
{
204+
"height": 62,
205+
},
206+
{
207+
"width": 62,
208+
},
209+
{
210+
"flexShrink": 1,
211+
},
212+
{
213+
"justifyContent": "center",
214+
},
215+
{
216+
"alignItems": "center",
217+
},
218+
{
219+
"borderBottomWidth": 1,
220+
"borderLeftWidth": 1,
221+
"borderRightWidth": 1,
222+
"borderTopWidth": 1,
223+
},
224+
{
225+
"borderBottomColor": "#E8E8E8",
226+
"borderLeftColor": "#E8E8E8",
227+
"borderRightColor": "#E8E8E8",
228+
"borderTopColor": "#E8E8E8",
229+
},
230+
],
231+
]
232+
}
233+
testID="IconicTaxonName.iconicTaxonIcon"
234+
>
235+
<Text
236+
allowFontScaling={false}
237+
selectable={false}
238+
style={
239+
[
240+
{
241+
"color": "rgba(103, 80, 164, 1)",
242+
"fontSize": 22,
243+
},
244+
undefined,
245+
{
246+
"fontFamily": "INatIcon",
247+
"fontStyle": "normal",
248+
"fontWeight": "normal",
249+
},
250+
{},
251+
]
252+
}
253+
>
254+
255+
</Text>
256+
</View>
257+
</View>
222258
</View>
223259
<View
224260
style={

0 commit comments

Comments
 (0)