* Detox/E2E: Migrate to typescript * Add jest.config.js * Add moduleMapper to config.json * Add cookie jar to axios client, fix tsconfig.json and default_config.json * Take keyboard into consideration; clean test for now for this migration PR * Revert changes on path_builder * Attempt to fix dep issues * Update detox dep * Added missing @type dev dependencies * Fix dep order * Fix unit tests * Added dynamic year to email.ts
170 lines
3.7 KiB
Text
170 lines
3.7 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Server Icon Server Icon Component should match snapshot 1`] = `
|
|
<View>
|
|
<View
|
|
accessibilityState={
|
|
Object {
|
|
"disabled": true,
|
|
}
|
|
}
|
|
accessible={true}
|
|
collapsable={false}
|
|
focusable={false}
|
|
onClick={[Function]}
|
|
onResponderGrant={[Function]}
|
|
onResponderMove={[Function]}
|
|
onResponderRelease={[Function]}
|
|
onResponderTerminate={[Function]}
|
|
onResponderTerminationRequest={[Function]}
|
|
onStartShouldSetResponder={[Function]}
|
|
style={
|
|
Object {
|
|
"opacity": 1,
|
|
}
|
|
}
|
|
>
|
|
<Icon
|
|
color="rgba(255,255,255,0.56)"
|
|
name="server-variant"
|
|
size={24}
|
|
/>
|
|
</View>
|
|
</View>
|
|
`;
|
|
|
|
exports[`Server Icon Server Icon Component should match snapshot with mentions 1`] = `
|
|
<View>
|
|
<View
|
|
accessibilityState={
|
|
Object {
|
|
"disabled": true,
|
|
}
|
|
}
|
|
accessible={true}
|
|
collapsable={false}
|
|
focusable={false}
|
|
onClick={[Function]}
|
|
onResponderGrant={[Function]}
|
|
onResponderMove={[Function]}
|
|
onResponderRelease={[Function]}
|
|
onResponderTerminate={[Function]}
|
|
onResponderTerminationRequest={[Function]}
|
|
onStartShouldSetResponder={[Function]}
|
|
style={
|
|
Object {
|
|
"opacity": 1,
|
|
}
|
|
}
|
|
testID="server_icon"
|
|
>
|
|
<Icon
|
|
color="rgba(255,255,255,0.56)"
|
|
name="server-variant"
|
|
size={24}
|
|
/>
|
|
<Text
|
|
collapsable={false}
|
|
numberOfLines={1}
|
|
style={
|
|
Object {
|
|
"alignSelf": "flex-end",
|
|
"backgroundColor": "#ffffff",
|
|
"borderColor": "#14213e",
|
|
"borderRadius": 11,
|
|
"borderWidth": 2,
|
|
"color": "#1e325c",
|
|
"fontFamily": "OpenSans-Bold",
|
|
"fontSize": 12,
|
|
"height": 22,
|
|
"left": 13,
|
|
"lineHeight": 16.5,
|
|
"minWidth": 26,
|
|
"opacity": 1,
|
|
"overflow": "hidden",
|
|
"paddingHorizontal": 5,
|
|
"position": "absolute",
|
|
"textAlign": "center",
|
|
"top": -8,
|
|
"transform": Array [
|
|
Object {
|
|
"scale": 1,
|
|
},
|
|
],
|
|
}
|
|
}
|
|
testID="server_icon.badge"
|
|
>
|
|
1
|
|
</Text>
|
|
</View>
|
|
</View>
|
|
`;
|
|
|
|
exports[`Server Icon Server Icon Component should match snapshot with unreads 1`] = `
|
|
<View>
|
|
<View
|
|
accessibilityState={
|
|
Object {
|
|
"disabled": true,
|
|
}
|
|
}
|
|
accessible={true}
|
|
collapsable={false}
|
|
focusable={false}
|
|
onClick={[Function]}
|
|
onResponderGrant={[Function]}
|
|
onResponderMove={[Function]}
|
|
onResponderRelease={[Function]}
|
|
onResponderTerminate={[Function]}
|
|
onResponderTerminationRequest={[Function]}
|
|
onStartShouldSetResponder={[Function]}
|
|
style={
|
|
Object {
|
|
"opacity": 1,
|
|
}
|
|
}
|
|
testID="server_icon"
|
|
>
|
|
<Icon
|
|
color="rgba(255,255,255,0.56)"
|
|
name="server-variant"
|
|
size={24}
|
|
/>
|
|
<Text
|
|
collapsable={false}
|
|
numberOfLines={1}
|
|
style={
|
|
Object {
|
|
"alignSelf": "flex-end",
|
|
"backgroundColor": "#ffffff",
|
|
"borderColor": "#14213e",
|
|
"borderRadius": 6,
|
|
"borderWidth": 2,
|
|
"color": "#1e325c",
|
|
"fontFamily": "OpenSans-Bold",
|
|
"fontSize": 12,
|
|
"height": 12,
|
|
"left": 18,
|
|
"lineHeight": 16.5,
|
|
"minWidth": 12,
|
|
"opacity": 1,
|
|
"overflow": "hidden",
|
|
"paddingHorizontal": 0,
|
|
"position": "absolute",
|
|
"textAlign": "center",
|
|
"top": -5,
|
|
"transform": Array [
|
|
Object {
|
|
"scale": 1,
|
|
},
|
|
],
|
|
}
|
|
}
|
|
testID="server_icon.badge"
|
|
>
|
|
|
|
</Text>
|
|
</View>
|
|
</View>
|
|
`;
|