File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/svelte-testing-library Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ tells Svelte to apply any new changes to the DOM.
27
27
``` js
28
28
import {render } from ' @testing-library/svelte'
29
29
30
- const { results } = render (YourComponent, {ComponentOptions}, {RenderOptions})
30
+ const view = render (YourComponent, {ComponentOptions}, {RenderOptions})
31
31
```
32
32
33
33
### Component Options
@@ -41,13 +41,13 @@ in directly.
41
41
42
42
``` js
43
43
// With options.
44
- const { results } = render (YourComponent, {
44
+ const view = render (YourComponent, {
45
45
target: MyTarget,
46
46
props: {myProp: ' value' },
47
47
})
48
48
49
49
// Props only.
50
- const { results } = render (YourComponent, {myProp: ' value' })
50
+ const view = render (YourComponent, {myProp: ' value' })
51
51
```
52
52
53
53
### Render Options
You can’t perform that action at this time.
0 commit comments