mattermost-mobile/app/components/progressive_image/__snapshots__/progressive_image.test.js.snap
Dean Whillier fb8238ab0b
[MM-37553] Update default themes (#5648)
* new themes and theme type updates

* update theme processing

port newer functionality from webapp

* update theme UI

including new svg-based thumbnail

* lint fixes

* update snapshots and tests

* update theme tile border approach

* remove unused path component

* remove old variable typo

* remove old variable type from theme type

* lint and snapshot updates

* update snapshots
2021-09-03 10:50:24 -04:00

140 lines
2.7 KiB
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`ProgressiveImage should match snapshot for BackgroundImage 1`] = `
<View
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "rgba(63,67,80,0.08)",
"justifyContent": "center",
},
Object {},
]
}
>
<ImageBackground
resizeMode="cover"
source={
Object {
"uri": "https://images.com/image.png",
}
}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
undefined,
]
}
/>
</View>
`;
exports[`ProgressiveImage should match snapshot for Default Image 1`] = `
<View
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "rgba(63,67,80,0.08)",
"justifyContent": "center",
},
Object {},
]
}
>
<ForwardRef(AnimatedComponentWrapper)
nativeID="image-undefined"
onError={[MockFunction]}
resizeMethod="auto"
resizeMode="contain"
source="https://images.com/image.png"
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
undefined,
null,
]
}
/>
</View>
`;
exports[`ProgressiveImage should match snapshot for Image 1`] = `
<ForwardRef(AnimatedComponentWrapper)
style={
Array [
Object {
"alignItems": "center",
"backgroundColor": "rgba(63,67,80,0.08)",
"justifyContent": "center",
},
Object {},
Object {
"backgroundColor": "rgba(63,67,80,NaN)",
},
]
}
>
<ForwardRef(AnimatedComponentWrapper)
onError={[MockFunction]}
resizeMethod="auto"
resizeMode="contain"
source={
Object {
"testUri": "../../../dist/assets/images/thumb.png",
}
}
style={
Array [
undefined,
Object {
"opacity": 0.5,
"tintColor": "#3f4350",
},
]
}
testID="progressive_image.thumbnail"
/>
<ForwardRef(AnimatedComponentWrapper)
nativeID="image-undefined"
onError={[MockFunction]}
onLoadEnd={[Function]}
resizeMethod="auto"
resizeMode="contain"
source={
Object {
"uri": "https://images.com/image.png",
}
}
style={
Array [
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
},
undefined,
Object {
"opacity": 0,
},
]
}
testID="progressive_image.highResImage"
/>
</ForwardRef(AnimatedComponentWrapper)>
`;