Skip to content

Commit

Permalink
Merge remote-tracking branch 'airbnb/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Mar 5, 2018
2 parents 0efc948 + 3211a0e commit 4d0b183
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 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
8 changes: 4 additions & 4 deletions docs/guides/migration-from-2-to-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ return 3 and not 1 as in previous versions. A closer look using
[`debug`](../api/ReactWrapper/debug.md) reveals:

<!-- eslint react/prop-types: 0, react/prefer-stateless-function: 0 -->

```
<!-- eslint-skip -->
```jsx
// console.log(wrapper.find('[aria-expanded="true"]').debug());

<HelpLinkContainer aria-expanded={true} text="foo">
Expand All @@ -465,9 +465,9 @@ To return only the html nodes use the

`wrapper.find("[aria-expanded=true]").hostNodes().debug()` will now return:

<!-- eslint react/prop-types: 0, react/prefer-stateless-function: 0 -->
<!-- eslint react/prop-types: 0, react/prefer-stateless-function: 0, no-unused-expressions: 0, jsx-a11y/anchor-is-valid: 0 -->

```
```jsx
<a aria-expanded="true">foo</a>;
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-markdown": "^1.0.0-beta.6",
"eslint-plugin-markdown": "^1.0.0-beta.7",
"eslint-plugin-react": "^7.6.1",
"gitbook-cli": "^1.0.1",
"gitbook-plugin-anchors": "^0.7.1",
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 4d0b183

Please sign in to comment.