147 lines
3.3 KiB
Text
147 lines
3.3 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`thread should match snapshot, has root post 1`] = `
|
|
<Connect(SafeAreaIos)
|
|
excludeHeader={true}
|
|
keyboardOffset={20}
|
|
>
|
|
<Connect(StatusBar) />
|
|
<KeyboardLayout
|
|
style={
|
|
Object {
|
|
"backgroundColor": "#ffffff",
|
|
"flex": 1,
|
|
}
|
|
}
|
|
>
|
|
<Connect(PostList)
|
|
currentUserId="member_user_id"
|
|
indicateNewMessages={true}
|
|
navigator={
|
|
Object {
|
|
"dismissModal": [MockFunction],
|
|
"pop": [MockFunction],
|
|
"resetTo": [MockFunction],
|
|
"setTitle": [MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
Object {
|
|
"title": undefined,
|
|
},
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"isThrow": false,
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
}
|
|
}
|
|
postIds={
|
|
Array [
|
|
"root_id",
|
|
"post_id_1",
|
|
"post_id_2",
|
|
]
|
|
}
|
|
renderFooter={[Function]}
|
|
/>
|
|
<Connect(PostTextbox)
|
|
channelId="channel_id"
|
|
channelIsArchived={false}
|
|
navigator={
|
|
Object {
|
|
"dismissModal": [MockFunction],
|
|
"pop": [MockFunction],
|
|
"resetTo": [MockFunction],
|
|
"setTitle": [MockFunction] {
|
|
"calls": Array [
|
|
Array [
|
|
Object {
|
|
"title": undefined,
|
|
},
|
|
],
|
|
],
|
|
"results": Array [
|
|
Object {
|
|
"isThrow": false,
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
}
|
|
}
|
|
onCloseChannel={[Function]}
|
|
rootId="root_id"
|
|
/>
|
|
</KeyboardLayout>
|
|
</Connect(SafeAreaIos)>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, no root post, loading 1`] = `
|
|
<Connect(SafeAreaIos)
|
|
excludeHeader={true}
|
|
keyboardOffset={20}
|
|
>
|
|
<Connect(StatusBar) />
|
|
<KeyboardLayout
|
|
style={
|
|
Object {
|
|
"backgroundColor": "#ffffff",
|
|
"flex": 1,
|
|
}
|
|
}
|
|
>
|
|
<Loading
|
|
color="grey"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
</KeyboardLayout>
|
|
</Connect(SafeAreaIos)>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, render footer 1`] = `
|
|
<Loading
|
|
color="grey"
|
|
size="large"
|
|
style={Object {}}
|
|
/>
|
|
`;
|
|
|
|
exports[`thread should match snapshot, render footer 2`] = `null`;
|
|
|
|
exports[`thread should match snapshot, render footer 3`] = `
|
|
<DeletedPost
|
|
theme={
|
|
Object {
|
|
"awayIndicator": "#ffbc42",
|
|
"buttonBg": "#166de0",
|
|
"buttonColor": "#ffffff",
|
|
"centerChannelBg": "#ffffff",
|
|
"centerChannelColor": "#3d3c40",
|
|
"codeTheme": "github",
|
|
"dndIndicator": "#f74343",
|
|
"errorTextColor": "#fd5960",
|
|
"linkColor": "#2389d7",
|
|
"mentionBj": "#ffffff",
|
|
"mentionColor": "#145dbf",
|
|
"mentionHighlightBg": "#ffe577",
|
|
"mentionHighlightLink": "#166de0",
|
|
"newMessageSeparator": "#ff8800",
|
|
"onlineIndicator": "#06d6a0",
|
|
"sidebarBg": "#145dbf",
|
|
"sidebarHeaderBg": "#1153ab",
|
|
"sidebarHeaderTextColor": "#ffffff",
|
|
"sidebarText": "#ffffff",
|
|
"sidebarTextActiveBorder": "#579eff",
|
|
"sidebarTextActiveColor": "#ffffff",
|
|
"sidebarTextHoverBg": "#4578bf",
|
|
"sidebarUnreadText": "#ffffff",
|
|
"type": "Mattermost",
|
|
}
|
|
}
|
|
/>
|
|
`;
|