-
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.
added comparing snapshot for previously added test
- Loading branch information
1 parent
85b4105
commit 48d3595
Showing
6 changed files
with
1,549 additions
and
15 deletions.
There are no files selected for viewing
324 changes: 324 additions & 0 deletions
324
app/components/channel_info/__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[`ChannelInfo 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[`ChannelInfo 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[`ChannelInfo 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[`ChannelInfo 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[`ChannelInfo 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.