Merge pull request #4460 from tako-black/enclose_variables_in_back_quote

Enclose variables in back quote
This commit is contained in:
Jim
2015-07-22 09:00:58 -07:00
+7 -7
View File
@@ -49,7 +49,7 @@ Pass a mocked component module to this method to augment it with useful methods
boolean isElement(ReactElement element)
```
Returns true if `element` is any ReactElement.
Returns `true` if `element` is any ReactElement.
### isElementOfType
@@ -57,7 +57,7 @@ Returns true if `element` is any ReactElement.
boolean isElementOfType(ReactElement element, function componentClass)
```
Returns true if `element` is a ReactElement whose type is of a React `componentClass`.
Returns `true` if `element` is a ReactElement whose type is of a React `componentClass`.
### isDOMComponent
@@ -65,7 +65,7 @@ Returns true if `element` is a ReactElement whose type is of a React `componentC
boolean isDOMComponent(ReactComponent instance)
```
Returns true if `instance` is a DOM component (such as a `<div>` or `<span>`).
Returns `true` if `instance` is a DOM component (such as a `<div>` or `<span>`).
### isCompositeComponent
@@ -73,7 +73,7 @@ Returns true if `instance` is a DOM component (such as a `<div>` or `<span>`).
boolean isCompositeComponent(ReactComponent instance)`
```
Returns true if `instance` is a composite component (created with `React.createClass()`).
Returns `true` if `instance` is a composite component (created with `React.createClass()`).
### isCompositeComponentWithType
@@ -81,7 +81,7 @@ Returns true if `instance` is a composite component (created with `React.createC
boolean isCompositeComponentWithType(ReactComponent instance, function componentClass)
```
Returns true if `instance` is a composite component (created with `React.createClass()`) whose type is of a React `componentClass`.
Returns `true` if `instance` is a composite component (created with `React.createClass()`) whose type is of a React `componentClass`.
### findAllInRenderedTree
@@ -89,7 +89,7 @@ Returns true if `instance` is a composite component (created with `React.createC
array findAllInRenderedTree(ReactComponent tree, function test)
```
Traverse all components in `tree` and accumulate all components where `test(component)` is true. This is not that useful on its own, but it's used as a primitive for other test utils.
Traverse all components in `tree` and accumulate all components where `test(component)` is `true`. This is not that useful on its own, but it's used as a primitive for other test utils.
### scryRenderedDOMComponentsWithClass
@@ -160,7 +160,7 @@ Similar to `React.render`.
ReactComponent shallowRenderer.getRenderOutput()
```
After render has been called, returns shallowly rendered output. You can then begin to assert facts about the output. For example, if your component's render method returns:
After `render` has been called, returns shallowly rendered output. You can then begin to assert facts about the output. For example, if your component's render method returns:
```javascript
<div>