Skip to content

Commit ce14a3e

Browse files
author
Justin Ellison
authored
Fixed doc typo (#774)
* Fixed doc typo * Fixed incorrect code example
1 parent 9b80dac commit ce14a3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/en/testing/supplemental.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Test Renderer
22

3-
Dojo provides a simple and type safe test renderer for shallowly asserting the expected output and behavior from a widget. The test renderer's API has been designed to encourage unit testing best practices from the outset to ensure high confidence in you Dojo application.
3+
Dojo provides a simple and type safe test renderer for shallowly asserting the expected output and behavior from a widget. The test renderer's API has been designed to encourage unit testing best practices from the outset to ensure high confidence in your Dojo application.
44

55
Working with [assertions](/learn/testing/test-renderer#assertion) and the test renderer is done using [wrapped test nodes](/learn/testing/test-renderer#wrapped-test-nodes) that are defined in the assertion structure, ensuring type safety throughout the testing life-cycle.
66

@@ -175,15 +175,15 @@ Returns a new assertion with the new children appended to the node's existing ch
175175
Returns a new assertion with the new children pre-pended to the node's existing children.
176176

177177
```tsx
178-
.append(wrapped: Wrapped, children: () => RenderResult): AssertionResult;
178+
.prepend(wrapped: Wrapped, children: () => RenderResult): AssertionResult;
179179
```
180180

181181
#### `assertion.replaceChildren()`
182182

183183
Returns a new assertion with the new children replacing the node's existing children.
184184

185185
```tsx
186-
.append(wrapped: Wrapped, children: () => RenderResult): AssertionResult;
186+
.replaceChildren(wrapped: Wrapped, children: () => RenderResult): AssertionResult;
187187
```
188188

189189
#### `assertion.insertSiblings()`

0 commit comments

Comments
 (0)