Skip to content

Commit

Permalink
Update and fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzalezg9 committed May 28, 2024
1 parent af20825 commit 8b57868
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,13 @@ exports[`SquareButton renders correctly 1`] = `
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
[
{
"borderRadius": 10,
"height": 50,
"padding": 5,
"width": 50,
},
{
"backgroundColor": "#EC7357",
},
]
{
"backgroundColor": "#EC7357",
"borderRadius": 10,
"height": 50,
"minWidth": 50,
"padding": 5,
}
}
>
<View
Expand All @@ -52,7 +48,6 @@ exports[`SquareButton renders correctly 1`] = `
"display": "flex",
"height": "100%",
"justifyContent": "center",
"padding": 5,
}
}
>
Expand Down
6 changes: 5 additions & 1 deletion src/components/buttons/__tests__/square-button.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import SquareButton from "../SquareButton";
describe(`SquareButton`, () => {
it(`renders correctly`, () => {
const helloWorld = "Hello World";
const tree = renderer.create(<SquareButton icon={<Text>{helloWorld}</Text>} onClick={() => { }} />);
const tree = renderer.create(
<SquareButton onClick={() => {}}>
<Text>{helloWorld}</Text>
</SquareButton>
);

expect(tree).toMatchSnapshot();
});
Expand Down

0 comments on commit 8b57868

Please sign in to comment.