tooot/__tests__/components/Menu/__snapshots__/Row.js.snap

303 lines
5.6 KiB
Plaintext
Raw Normal View History

2020-12-28 00:59:57 +01:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Testing component menu row loading state 1`] = `
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
2021-01-10 02:12:14 +01:00
"minHeight": 50,
2020-12-28 00:59:57 +01:00
}
}
testID="base"
>
<View
style={
Object {
"flex": 1,
"flexDirection": "row",
"paddingLeft": 16,
"paddingRight": 16,
}
}
>
<View
style={
Object {
"alignItems": "center",
2021-01-10 02:12:14 +01:00
"flex": 2,
2020-12-28 00:59:57 +01:00
"flexDirection": "row",
}
}
>
2021-01-10 02:12:14 +01:00
<View
2020-12-28 00:59:57 +01:00
style={
2021-01-10 02:12:14 +01:00
Object {
"flex": 1,
}
2020-12-28 00:59:57 +01:00
}
>
2021-01-10 02:12:14 +01:00
<Text
numberOfLines={1}
style={
Array [
Object {
"fontSize": 16,
"lineHeight": 22,
},
Object {
"color": "rgb(18, 18, 18)",
},
]
}
>
test
</Text>
</View>
2020-12-28 00:59:57 +01:00
</View>
</View>
</View>
`;
exports[`Testing component menu row on press event 1`] = `
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
2021-01-10 02:12:14 +01:00
"minHeight": 50,
2020-12-28 00:59:57 +01:00
}
}
testID="base"
>
<View
style={
Object {
"flex": 1,
"flexDirection": "row",
"paddingLeft": 16,
"paddingRight": 16,
}
}
>
<View
style={
Object {
"alignItems": "center",
2021-01-10 02:12:14 +01:00
"flex": 2,
2020-12-28 00:59:57 +01:00
"flexDirection": "row",
}
}
>
2021-01-10 02:12:14 +01:00
<View
2020-12-28 00:59:57 +01:00
style={
2021-01-10 02:12:14 +01:00
Object {
"flex": 1,
}
2020-12-28 00:59:57 +01:00
}
>
2021-01-10 02:12:14 +01:00
<Text
numberOfLines={1}
style={
Array [
Object {
"fontSize": 16,
"lineHeight": 22,
},
Object {
"color": "rgb(18, 18, 18)",
},
]
}
>
test
</Text>
</View>
2020-12-28 00:59:57 +01:00
</View>
</View>
</View>
`;
exports[`Testing component menu row with title and content 1`] = `
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
2021-01-10 02:12:14 +01:00
"minHeight": 50,
2020-12-28 00:59:57 +01:00
}
}
testID="base"
>
<View
style={
Object {
"flex": 1,
"flexDirection": "row",
"paddingLeft": 16,
"paddingRight": 16,
}
}
>
<View
style={
Object {
"alignItems": "center",
2021-01-10 02:12:14 +01:00
"flex": 2,
2020-12-28 00:59:57 +01:00
"flexDirection": "row",
}
}
>
2021-01-10 02:12:14 +01:00
<View
2020-12-28 00:59:57 +01:00
style={
2021-01-10 02:12:14 +01:00
Object {
"flex": 1,
}
2020-12-28 00:59:57 +01:00
}
>
2021-01-10 02:12:14 +01:00
<Text
numberOfLines={1}
style={
Array [
Object {
"fontSize": 16,
"lineHeight": 22,
},
Object {
"color": "rgb(18, 18, 18)",
},
]
}
>
test title
</Text>
</View>
2020-12-28 00:59:57 +01:00
</View>
<View
style={
Object {
"alignItems": "center",
"flex": 1,
"flexDirection": "row",
"justifyContent": "flex-end",
2021-01-10 02:12:14 +01:00
"marginLeft": 16,
2020-12-28 00:59:57 +01:00
}
}
>
<Text
numberOfLines={1}
style={
Array [
Object {
"fontSize": 16,
2021-01-10 02:12:14 +01:00
"lineHeight": 22,
2020-12-28 00:59:57 +01:00
},
Object {
"color": "rgb(135, 135, 135)",
"opacity": 1,
},
]
}
>
test content
</Text>
</View>
</View>
</View>
`;
exports[`Testing component menu row with title only 1`] = `
<View
accessible={true}
focusable={true}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
2021-01-10 02:12:14 +01:00
"minHeight": 50,
2020-12-28 00:59:57 +01:00
}
}
testID="base"
>
<View
style={
Object {
"flex": 1,
"flexDirection": "row",
"paddingLeft": 16,
"paddingRight": 16,
}
}
>
<View
style={
Object {
"alignItems": "center",
2021-01-10 02:12:14 +01:00
"flex": 2,
2020-12-28 00:59:57 +01:00
"flexDirection": "row",
}
}
>
2021-01-10 02:12:14 +01:00
<View
2020-12-28 00:59:57 +01:00
style={
2021-01-10 02:12:14 +01:00
Object {
"flex": 1,
}
2020-12-28 00:59:57 +01:00
}
>
2021-01-10 02:12:14 +01:00
<Text
numberOfLines={1}
style={
Array [
Object {
"fontSize": 16,
"lineHeight": 22,
},
Object {
"color": "rgb(18, 18, 18)",
},
]
}
>
test title
</Text>
</View>
2020-12-28 00:59:57 +01:00
</View>
</View>
</View>
`;