Enclose variables in back quote
Kohei TAKATA committed
Jul 22, 2015 at 16:19 UTC
ae0f9189fc07c77b3c19bde4ebed72eaa6e0d3b7
1 file changed
+7
-7
docs/docs/10.4-test-utils.md
+7
-7
@@ -49,7 +49,7 @@ Pass a mocked component module to this method to augment it with useful methods
49
boolean isElement(ReactElement element)
50
```
51
52
-Returns true if `element` is any ReactElement.
52
+Returns `true` if `element` is any ReactElement.
53
54
### isElementOfType
55
@@ -57,7 +57,7 @@ Returns true if `element` is any ReactElement.
57
boolean isElementOfType(ReactElement element, function componentClass)
58
```
59
60
-Returns true if `element` is a ReactElement whose type is of a React `componentClass`.
60
+Returns `true` if `element` is a ReactElement whose type is of a React `componentClass`.
61
62
### isDOMComponent
63
@@ -65,7 +65,7 @@ Returns true if `element` is a ReactElement whose type is of a React `componentC
65
boolean isDOMComponent(ReactComponent instance)
66
```
67
68
-Returns true if `instance` is a DOM component (such as a `<div>` or `<span>`).
68
+Returns `true` if `instance` is a DOM component (such as a `<div>` or `<span>`).
69
70
### isCompositeComponent
71
@@ -73,7 +73,7 @@ Returns true if `instance` is a DOM component (such as a `<div>` or `<span>`).
73
boolean isCompositeComponent(ReactComponent instance)`
74
```
75
76
-Returns true if `instance` is a composite component (created with `React.createClass()`).
76
+Returns `true` if `instance` is a composite component (created with `React.createClass()`).
77
78
### isCompositeComponentWithType
79
@@ -81,7 +81,7 @@ Returns true if `instance` is a composite component (created with `React.createC
81
boolean isCompositeComponentWithType(ReactComponent instance, function componentClass)
82
```
83
84
-Returns true if `instance` is a composite component (created with `React.createClass()`) whose type is of a React `componentClass`.
84
+Returns `true` if `instance` is a composite component (created with `React.createClass()`) whose type is of a React `componentClass`.
85
86
### findAllInRenderedTree
87
@@ -89,7 +89,7 @@ Returns true if `instance` is a composite component (created with `React.createC
89
array findAllInRenderedTree(ReactComponent tree, function test)
90
```
91
92
-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.
92
+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.
93
94
### scryRenderedDOMComponentsWithClass
95
@@ -160,7 +160,7 @@ Similar to `React.render`.
160
ReactComponent shallowRenderer.getRenderOutput()
161
```
162
163
-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:
163
+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:
164
165
```javascript
166
<div>