Skip to content

Commit a3c28bd

Browse files
committed
docs: fix small issues
1 parent bf946b0 commit a3c28bd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

website/docs/14.x/cookbook/basics/async-events.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ Each query has a default `timeout` value of 1000 ms and a default `interval` of
6969
#### Example
7070

7171
```typescript
72-
const button = await screen.findByRole('button'), { name: 'Start' }, { timeout: 1000, interval: 50 });
72+
const button = await screen.findByRole(
73+
'button',
74+
{ name: 'Start' },
75+
{ timeout: 1000, interval: 50 }
76+
);
7377
```
7478

7579
Alternatively, a default global `timeout` value can be set using the [`configure` function](docs/api/misc/config#configure):

website/docs/14.x/docs/api/screen.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ You can also transform prop values so that they are more readable (e.g., flatten
123123
```ts
124124
import { StyleSheet } from 'react-native';
125125

126-
screen.debug({ mapProps : {({ style, ...props })} => ({ style : StyleSheet.flatten(style), ...props }) });
126+
screen.debug({
127+
mapProps: ({ style, ...props }) => ({ style: StyleSheet.flatten(style), ...props }),
128+
});
127129
```
128130

129131
Or remove props that have little value when debugging tests, e.g. path prop for svgs

0 commit comments

Comments
 (0)