Skip to content

Commit 6511abc

Browse files
committed
fixed test
1 parent 35b151c commit 6511abc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/native/test/native-styled.test.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ describe('Emotion native styled', () => {
2828
font-size: 20px;
2929
background-color: ${props => props.back};
3030
`
31-
const tree = await act(() =>
32-
renderer.create(
33-
<Text style={{ fontSize: 40 }} back="red">
34-
Emotion Primitives
35-
</Text>
31+
const tree = (
32+
await act(() =>
33+
renderer.create(
34+
<Text style={{ fontSize: 40 }} back="red">
35+
Emotion Primitives
36+
</Text>
37+
)
3638
)
3739
).toJSON()
3840
expect(tree).toMatchSnapshot()

0 commit comments

Comments
 (0)