Skip to content

Commit

Permalink
feat: apisauce removal and testcase updations
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamoil authored and Shamoil committed Sep 3, 2024
1 parent 0dad05b commit 2262b33
Show file tree
Hide file tree
Showing 14 changed files with 372 additions and 453 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module.exports = {
}
],
'no-shadow': 'error',
complexity: ['error', 2],
complexity: ['error', 4],
'no-empty': 'error',
'import/order': [
'error',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
exports[`<Container /> should render and match the snapshot 1`] = `
<View
style={
{
"display": "flex",
"flexBasis": 0,
"flexGrow": 1,
"flexShrink": 1,
}
[
{
"display": "flex",
"flexBasis": 0,
"flexGrow": 1,
"flexShrink": 1,
},
]
}
testID="container"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,29 @@ exports[`<CharacterWithQuote /> Should render and match the snapshot 1`] = `
[
<Text
style={
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
}
[
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
},
]
}
testID="t"
>
wednesday_lover
</Text>,
<Text
style={
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
}
[
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
},
]
}
testID="t"
>
because
</Text>,
Expand All @@ -36,27 +38,30 @@ exports[`<CharacterWithQuote /> Should render and match the snapshot 1`] = `
}
}
style={
{
"height": 80,
"marginBottom": 0,
"marginLeft": "auto",
"marginRight": "auto",
"marginTop": 0,
"width": 80,
}
[
{
"height": 80,
"marginBottom": 0,
"marginLeft": "auto",
"marginRight": "auto",
"marginTop": 0,
"width": 80,
},
]
}
testID="character-image"
/>,
<Text
style={
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
}
[
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
},
]
}
testID="t"
/>,
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ exports[`<LogoWithInstructions /> Should render and match the snapshot 1`] = `
</View>
<Text
style={
{
"fontSize": 17,
"fontStyle": "italic",
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
}
[
{
"fontSize": 17,
"fontStyle": "italic",
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
},
]
}
testID="t"
/>
</View>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -30,43 +30,50 @@ exports[`<SimpsonsLoveWednesday /> Should render and match the snapshot 1`] = `
</View>
<Text
style={
{
"fontSize": 17,
"fontStyle": "italic",
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
}
[
{
"fontSize": 17,
"fontStyle": "italic",
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
},
]
}
testID="t"
/>
</View>,
<View
style={{}}
style={
[
{},
]
}
>
<Text
style={
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
}
[
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
},
]
}
testID="t"
>
wednesday_lover
</Text>
<Text
style={
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
}
[
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
},
]
}
testID="t"
>
because
</Text>
Expand All @@ -78,27 +85,30 @@ exports[`<SimpsonsLoveWednesday /> Should render and match the snapshot 1`] = `
}
}
style={
{
"height": 80,
"marginBottom": 0,
"marginLeft": "auto",
"marginRight": "auto",
"marginTop": 0,
"width": 80,
}
[
{
"height": 80,
"marginBottom": 0,
"marginLeft": "auto",
"marginRight": "auto",
"marginTop": 0,
"width": 80,
},
]
}
testID="character-image"
/>
<Text
style={
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
}
[
{
"fontSize": 17,
"fontWeight": "normal",
"marginBottom": 5,
"textAlign": "center",
},
]
}
testID="t"
/>
</View>,
]
Expand Down
2 changes: 1 addition & 1 deletion app/scenes/ExampleScreen/recoilState.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { atom, selector } from 'recoil';
import { getUser } from '@app/services/userService';
import { Errors } from '@app/utils/erros';
import { Errors } from '@app/utils/errors';

// Atom to manage user state
export const userState = atom({
Expand Down
Loading

0 comments on commit 2262b33

Please sign in to comment.