Skip to content

Commit

Permalink
added comparing snapshot for previously added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat-Dabade committed Nov 26, 2024
1 parent 85b4105 commit 48d3595
Show file tree
Hide file tree
Showing 6 changed files with 1,549 additions and 15 deletions.
324 changes: 324 additions & 0 deletions app/components/channel_info/__snapshots__/channel_info.test.tsx.snap
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>
`;
Loading

0 comments on commit 48d3595

Please sign in to comment.