Skip to content

Commit fba0124

Browse files
authored
docs: fix page.render example (#44)
1 parent 5447654 commit fba0124

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test('counter button increments the count', async () => {
2525
> [!NOTE]
2626
> This library doesn't expose or use `act`. Instead, you should use Vitest's locators and `expect.element` API that have [retry-ability mechanism](https://vitest.dev/guide/browser/assertion-api) baked in.
2727
28-
`vitest-browser-svelte` also automatically injects `render` and `cleanup` methods on the `page`. Example:
28+
`vitest-browser-svelte` also automatically injects a `render` method on the `page`. Example:
2929

3030
```ts
3131
// vitest.config.ts
@@ -53,7 +53,7 @@ test('counter button increments the count', async () => {
5353
initialCount: 1,
5454
})
5555

56-
screen.cleanup()
56+
// ...
5757
})
5858
```
5959

0 commit comments

Comments
 (0)