docs(ct): fix component.update example for vue and svelte (#31889)

This commit is contained in:
Sander 2024-07-31 13:40:19 +02:00 committed by GitHub
parent daca1681c0
commit c9a12e4ca1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -697,7 +697,7 @@ test('update', async ({ mount }) => {
```js
test('update', async ({ mount }) => {
const component = await mount(<Component/>);
const component = await mount(Component);
await component.update({
props: { msg: 'greetings' },
on: { callback: () => {} },
@ -711,7 +711,7 @@ test('update', async ({ mount }) => {
```js
test('update', async ({ mount }) => {
const component = await mount(<Component/>);
const component = await mount(Component);
await component.update({
props: { msg: 'greetings' },
on: { callback: () => {} },