Skip to content

Commit 85bfdf4

Browse files
docs: fix modelValue test example
The test was throwing an error `AssertionError: expected '' to be 'test'` because the input is of type number.
1 parent fe14948 commit 85bfdf4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/guide/advanced/v-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ test('modelValue and currency should be updated', async () => {
8989
})
9090

9191
const [currencyInput, modelValueInput] = wrapper.findAll('input')
92-
await modelValueInput.setValue('test')
92+
await modelValueInput.setValue('100')
9393
await currencyInput.setValue('£')
9494

95-
expect(wrapper.props('modelValue')).toBe('test')
95+
expect(wrapper.props('modelValue')).toBe('100')
9696
expect(wrapper.props('currency')).toBe('£')
9797
})
9898
```

0 commit comments

Comments
 (0)