Skip to content

Commit

Permalink
chore: Added snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
agrawal-rohit committed Dec 16, 2023
1 parent 74db28c commit 253436b
Show file tree
Hide file tree
Showing 22 changed files with 33,959 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/components/atoms/box/__snapshots__/box.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Atoms/Box passes the basic snapshot test 1`] = `
<View
style={
{
"flex": 1,
}
}
>
<View
animate={{}}
animatedStyle={
{
"value": {},
}
}
collapsable={false}
style={{}}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
>
asdasd
</View>
</View>
`;
44 changes: 44 additions & 0 deletions src/components/atoms/center/__snapshots__/center.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Atoms/Center passes the snapshot test 1`] = `
<View
style={
{
"flex": 1,
}
}
>
<View
animate={
{
"alignItems": "center",
"justifyContent": "center",
}
}
animatedStyle={
{
"value": {
"alignItems": "center",
"justifyContent": "center",
},
}
}
collapsable={false}
style={
{
"alignItems": "center",
"justifyContent": "center",
}
}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
>
This is centered
</View>
</View>
`;
208 changes: 208 additions & 0 deletions src/components/atoms/divider/__snapshots__/divider.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Atoms/Divider passes the snapshot test for different length modes 1`] = `
<View
style={
{
"flex": 1,
}
}
>
<View
animate={
{
"backgroundColor": "#58617A",
}
}
animatedStyle={
{
"value": {
"backgroundColor": "#58617A",
},
}
}
collapsable={false}
style={
{
"backgroundColor": "#58617A",
"height": 1,
"width": "50%",
}
}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
<View
animate={
{
"backgroundColor": "#ee82ee",
}
}
animatedStyle={
{
"value": {
"backgroundColor": "#ee82ee",
},
}
}
collapsable={false}
style={
{
"backgroundColor": "#ee82ee",
"height": 20,
"width": 1,
}
}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
</View>
`;

exports[`Atoms/Divider passes the snapshot test in dark mode 1`] = `
<View
style={
{
"flex": 1,
}
}
>
<View
animate={
{
"backgroundColor": "#58617A",
}
}
animatedStyle={
{
"value": {
"backgroundColor": "#58617A",
},
}
}
collapsable={false}
style={
{
"backgroundColor": "#58617A",
"height": 1,
"width": "100%",
}
}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
<View
animate={
{
"backgroundColor": "#58617A",
}
}
animatedStyle={
{
"value": {
"backgroundColor": "#58617A",
},
}
}
collapsable={false}
style={
{
"backgroundColor": "#58617A",
"height": "100%",
"width": 1,
}
}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
</View>
`;

exports[`Atoms/Divider passes the snapshot test in light mode 1`] = `
<View
style={
{
"flex": 1,
}
}
>
<View
animate={
{
"backgroundColor": "#E4E9F2",
}
}
animatedStyle={
{
"value": {
"backgroundColor": "#E4E9F2",
},
}
}
collapsable={false}
style={
{
"backgroundColor": "#E4E9F2",
"height": 1,
"width": "100%",
}
}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
<View
animate={
{
"backgroundColor": "#E4E9F2",
}
}
animatedStyle={
{
"value": {
"backgroundColor": "#E4E9F2",
},
}
}
collapsable={false}
style={
{
"backgroundColor": "#E4E9F2",
"height": "100%",
"width": 1,
}
}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
</View>
`;
29 changes: 29 additions & 0 deletions src/components/atoms/grid/__snapshots__/grid.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Atoms/Grid passes the snapshot test 1`] = `
<View
style={
{
"flex": 1,
}
}
>
<View
animate={{}}
animatedStyle={
{
"value": {},
}
}
collapsable={false}
style={{}}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
</View>
`;

0 comments on commit 253436b

Please sign in to comment.