Skip to content

Commit

Permalink
test: Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Agrawal committed Dec 16, 2023
1 parent 6129684 commit 6034e18
Show file tree
Hide file tree
Showing 61 changed files with 23,594 additions and 14,337 deletions.
37 changes: 0 additions & 37 deletions docs/docs/utils/hooks/useDimensions.mdx

This file was deleted.

1 change: 0 additions & 1 deletion docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ module.exports = {
"utils/hooks/useTheme",
"utils/hooks/useStyleProps",
"utils/hooks/useMotiWithStyleProps",
"utils/hooks/useDimensions",
"utils/hooks/useColorScheme",
"utils/hooks/useColorModeValue",
"utils/hooks/useResponsiveProp",
Expand Down
1 change: 0 additions & 1 deletion docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ html[data-theme="dark"] .menu__link[href*="Badge"]:after {
.menu__link[href*="Switch"]:before,
.menu__link[href*="responsivity"]:before,
.menu__link[href*="animation-support"]:before,
.menu__link[href*="useDimensions"]:before,
.menu__link[href*="useMotiWithStyleProps"]:before,
.menu__link[href*="useDynamicStateStyle"]:before,
.menu__link[href*="useFocusedState"]:before,
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"prepare": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`pearl/atoms passes the snapshot test for a <Text> component 1`] = `
<View
style={
Object {
{
"flex": 1,
}
}
Expand All @@ -12,9 +12,12 @@ exports[`pearl/atoms passes the snapshot test for a <Text> component 1`] = `
color="success.400"
fontFamily="body"
fontWeight="hairline"
style={
Object {
"display": "flex",
style={{}}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
>
Expand All @@ -26,21 +29,21 @@ exports[`pearl/atoms passes the snapshot test for a <Text> component 1`] = `
exports[`pearl/atoms passes the snapshot test for a <View> component 1`] = `
<View
style={
Object {
{
"flex": 1,
}
}
>
<View
box1={
Object {
{
"backgroundColor": "success.500",
"height": 50,
"width": 50,
}
}
root={
Object {
{
"backgroundColor": "danger.400",
"boxShadow": "4xl",
"height": 200,
Expand All @@ -49,13 +52,12 @@ exports[`pearl/atoms passes the snapshot test for a <View> component 1`] = `
}
}
style={
Object {
{
"backgroundColor": "#FF8371",
"display": "flex",
"elevation": 28,
"height": 200,
"shadowColor": "#1A2138",
"shadowOffset": Object {
"shadowOffset": {
"height": 28,
"width": 0,
},
Expand All @@ -64,22 +66,32 @@ exports[`pearl/atoms passes the snapshot test for a <View> component 1`] = `
"width": 200,
}
}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
</View>
`;
exports[`pearl/basic passes the snapshot test for a <Text> component 1`] = `
<View
style={
Object {
{
"flex": 1,
}
}
>
<Text
style={
Object {
"display": "flex",
style={{}}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
>
Expand All @@ -91,15 +103,18 @@ exports[`pearl/basic passes the snapshot test for a <Text> component 1`] = `
exports[`pearl/basic passes the snapshot test for a <View> component 1`] = `
<View
style={
Object {
{
"flex": 1,
}
}
>
<View
style={
Object {
"display": "flex",
style={{}}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
Expand All @@ -109,56 +124,59 @@ exports[`pearl/basic passes the snapshot test for a <View> component 1`] = `
exports[`pearl/molecules passes the snapshot test for a <View> component 1`] = `
<View
style={
Object {
{
"flex": 1,
}
}
>
<View
animate={{}}
animatedStyle={
Object {
"value": Object {
"transform": Array [],
},
{
"value": {},
}
}
collapsable={false}
style={
Object {
"display": "flex",
"transform": Array [],
style={{}}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
>
<View
animate={{}}
animatedStyle={
Object {
"value": Object {
"transform": Array [],
},
{
"value": {},
}
}
collapsable={false}
style={
Object {
"display": "flex",
"transform": Array [],
style={{}}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
<View
animate={{}}
animatedStyle={
Object {
"value": Object {
"transform": Array [],
},
{
"value": {},
}
}
collapsable={false}
style={
Object {
"display": "flex",
"transform": Array [],
style={{}}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
/>
Expand Down
19 changes: 10 additions & 9 deletions src/components/Atoms/Box/__snapshots__/Box.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@
exports[`Atoms/Box passes the basic snapshot test 1`] = `
<View
style={
Object {
{
"flex": 1,
}
}
>
<View
animate={{}}
animatedStyle={
Object {
"value": Object {
"transform": Array [],
},
{
"value": {},
}
}
collapsable={false}
style={
Object {
"display": "flex",
"transform": Array [],
style={{}}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
>
Expand Down
26 changes: 19 additions & 7 deletions src/components/Atoms/Center/__snapshots__/Center.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,38 @@
exports[`Atoms/Center passes the snapshot test 1`] = `
<View
style={
Object {
{
"flex": 1,
}
}
>
<View
animate={
{
"alignItems": "center",
"justifyContent": "center",
}
}
animatedStyle={
Object {
"value": Object {
"transform": Array [],
{
"value": {
"alignItems": "center",
"justifyContent": "center",
},
}
}
collapsable={false}
style={
Object {
{
"alignItems": "center",
"display": "flex",
"justifyContent": "center",
"transform": Array [],
}
}
transition={
{
"dampingRatio": 1,
"duration": 100,
"type": "spring",
}
}
>
Expand Down
Loading

0 comments on commit 6034e18

Please sign in to comment.