Skip to content

Commit 01b0a5f

Browse files
committed
docs(svelte): debug description mentions wrong element
1 parent e91fb71 commit 01b0a5f

File tree

1 file changed

+1
-1
lines changed
  • docs/svelte-testing-library

1 file changed

+1
-1
lines changed

docs/svelte-testing-library/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Please refer to the
5454
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
5555
| `container` | The HTML element the component is mounted into. |
5656
| `component` | The newly created Svelte component. This is mostly useful for testing exported functions or cases where manipulating the DOM doesn't fit. Outside of said cases avoid using the component directly to build tests, instead of interacting with the rendered Svelte component, work with the DOM . |
57-
| `debug` | Logs the baseElement using [prettyDom](https://testing-library.com/docs/dom-testing-library/api-helpers#prettydom). |
57+
| `debug` | Logs the `container` using [prettyDom](https://testing-library.com/docs/dom-testing-library/api-helpers#prettydom). |
5858
| `unmount` | Unmounts the component from the `target` by calling `component.$destroy()`. |
5959
| `rerender` | Calls render again destroying the old component, and mounting the new component on the original `target` with any new options passed in. |
6060
| `...queries` | Returns all [query functions](https://testing-library.com/docs/dom-testing-library/api-queries) that are binded to the `container`. If you pass in `query` arguments than this will be those, otherwise all. |

0 commit comments

Comments
 (0)