Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 12, 2024
1 parent 35b151c commit 6511abc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/native/test/native-styled.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ describe('Emotion native styled', () => {
font-size: 20px;
background-color: ${props => props.back};
`
const tree = await act(() =>
renderer.create(
<Text style={{ fontSize: 40 }} back="red">
Emotion Primitives
</Text>
const tree = (
await act(() =>
renderer.create(
<Text style={{ fontSize: 40 }} back="red">
Emotion Primitives
</Text>
)
)
).toJSON()
expect(tree).toMatchSnapshot()
Expand Down

0 comments on commit 6511abc

Please sign in to comment.