Skip to content

Commit

Permalink
Make clearer the docs for .mount()
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed Feb 24, 2018
1 parent 0efc948 commit 7f41a19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/mount.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `.mount() => Self`

A method that re-mounts the component. This can be used to simulate a component going through
A method that re-mounts the component, if it is not currently mounted. This can be used to simulate a component going through
an unmount/mount lifecycle.

#### Returns
Expand Down
3 changes: 2 additions & 1 deletion packages/enzyme/src/ReactWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ class ReactWrapper {
}

/**
* A method that re-mounts the component. This can be used to simulate a component going through
* A method that re-mounts the component, if it is not currently mounted.
* This can be used to simulate a component going through
* an unmount/mount lifecycle.
*
* @returns {ReactWrapper}
Expand Down

0 comments on commit 7f41a19

Please sign in to comment.