Skip to content

Commit bb69a91

Browse files
committed
[chore] improvements on readme testing section.
1 parent c2f582f commit bb69a91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,13 @@ ReactDOM.render(<App />, appElement);
259259
## Testing
260260

261261
When using React Test Utils with this library, here are some things to keep in mind:
262-
- You need to set isOpen={true} on the modal component for it to render its children.
262+
263+
- You need to set `isOpen={true}` on the modal component for it to render its children.
263264
- You need to use the `.portal` property, as in `ReactDOM.findDOMNode(renderedModal.portal)` or `TestUtils.scryRenderedDOMComponentsWithClass(Modal.portal, 'my-modal-class')` to acquire a handle to the inner contents of your modal.
264265

265266
By default the modal is closed when clicking outside of it (the overlay area). If you want to prevent this behavior you can
266267
pass the 'shouldCloseOnOverlayClick' prop with 'false' value.
268+
267269
```xml
268270
<Modal
269271
isOpen={bool}

0 commit comments

Comments
 (0)