-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3b6f00
commit 6dfa62c
Showing
11 changed files
with
628 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
324 changes: 324 additions & 0 deletions
324
app/components/draft_post_header/__snapshots__/channel_info.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,324 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DraftPostHeader Component renders CompassIcon when draftReceiverUser is not provided 1`] = ` | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
"justifyContent": "space-between", | ||
} | ||
} | ||
testID="channel-info" | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"marginRight": 6, | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"backgroundColor": "rgba(0,0,0,0.08)", | ||
"borderRadius": 555, | ||
"height": 24, | ||
"padding": 4, | ||
"width": 24, | ||
} | ||
} | ||
/> | ||
</View> | ||
</View> | ||
<Text | ||
style={ | ||
{ | ||
"color": "rgba(0,0,0,0.64)", | ||
"fontFamily": "OpenSans-SemiBold", | ||
"fontSize": 12, | ||
"fontWeight": "600", | ||
"lineHeight": 16, | ||
} | ||
} | ||
> | ||
Direct Message Channel | ||
</Text> | ||
</View> | ||
</View> | ||
`; | ||
|
||
exports[`DraftPostHeader Component renders correctly for a DM channel 1`] = ` | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
"justifyContent": "space-between", | ||
} | ||
} | ||
testID="channel-info" | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"marginRight": 6, | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"backgroundColor": "rgba(0,0,0,0.08)", | ||
"borderRadius": 555, | ||
"height": 24, | ||
"padding": 4, | ||
"width": 24, | ||
} | ||
} | ||
/> | ||
</View> | ||
</View> | ||
<Text | ||
style={ | ||
{ | ||
"color": "rgba(0,0,0,0.64)", | ||
"fontFamily": "OpenSans-SemiBold", | ||
"fontSize": 12, | ||
"fontWeight": "600", | ||
"lineHeight": 16, | ||
} | ||
} | ||
> | ||
Direct Message Channel | ||
</Text> | ||
</View> | ||
</View> | ||
`; | ||
|
||
exports[`DraftPostHeader Component renders correctly for a public channel 1`] = ` | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
"justifyContent": "space-between", | ||
} | ||
} | ||
testID="channel-info" | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"marginRight": 6, | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"backgroundColor": "rgba(0,0,0,0.08)", | ||
"borderRadius": 555, | ||
"height": 24, | ||
"padding": 4, | ||
"width": 24, | ||
} | ||
} | ||
/> | ||
</View> | ||
</View> | ||
<Text | ||
style={ | ||
{ | ||
"color": "rgba(0,0,0,0.64)", | ||
"fontFamily": "OpenSans-SemiBold", | ||
"fontSize": 12, | ||
"fontWeight": "600", | ||
"lineHeight": 16, | ||
} | ||
} | ||
> | ||
Public Channel | ||
</Text> | ||
</View> | ||
</View> | ||
`; | ||
|
||
exports[`DraftPostHeader Component renders correctly for a thread 1`] = ` | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
"justifyContent": "space-between", | ||
} | ||
} | ||
testID="channel-info" | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"marginRight": 6, | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"backgroundColor": "rgba(0,0,0,0.08)", | ||
"borderRadius": 555, | ||
"height": 24, | ||
"padding": 4, | ||
"width": 24, | ||
} | ||
} | ||
/> | ||
</View> | ||
</View> | ||
<Text | ||
style={ | ||
{ | ||
"color": "rgba(0,0,0,0.64)", | ||
"fontFamily": "OpenSans-SemiBold", | ||
"fontSize": 12, | ||
"fontWeight": "600", | ||
"lineHeight": 16, | ||
} | ||
} | ||
> | ||
Direct Message Channel | ||
</Text> | ||
</View> | ||
</View> | ||
`; | ||
|
||
exports[`DraftPostHeader Component renders the Avatar when draftReceiverUser is provided 1`] = ` | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
"justifyContent": "space-between", | ||
} | ||
} | ||
testID="channel-info" | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"alignItems": "center", | ||
"display": "flex", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
{ | ||
"marginRight": 6, | ||
} | ||
} | ||
/> | ||
</View> | ||
<Text | ||
style={ | ||
{ | ||
"color": "rgba(0,0,0,0.64)", | ||
"fontFamily": "OpenSans-SemiBold", | ||
"fontSize": 12, | ||
"fontWeight": "600", | ||
"lineHeight": 16, | ||
} | ||
} | ||
> | ||
Direct Message Channel | ||
</Text> | ||
</View> | ||
</View> | ||
`; |
Oops, something went wrong.