Skip to content

Commit 5bf98e4

Browse files
authored
Update svelte-testing-library api.mdx (testing-library#1340)
1 parent 1a17632 commit 5bf98e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/svelte-testing-library/api.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tells Svelte to apply any new changes to the DOM.
2727
```js
2828
import {render} from '@testing-library/svelte'
2929

30-
const {results} = render(YourComponent, {ComponentOptions}, {RenderOptions})
30+
const view = render(YourComponent, {ComponentOptions}, {RenderOptions})
3131
```
3232

3333
### Component Options
@@ -41,13 +41,13 @@ in directly.
4141

4242
```js
4343
// With options.
44-
const {results} = render(YourComponent, {
44+
const view = render(YourComponent, {
4545
target: MyTarget,
4646
props: {myProp: 'value'},
4747
})
4848

4949
// Props only.
50-
const {results} = render(YourComponent, {myProp: 'value'})
50+
const view = render(YourComponent, {myProp: 'value'})
5151
```
5252

5353
### Render Options

0 commit comments

Comments
 (0)