Skip to content

Commit

Permalink
docs: fix modelValue test example
Browse files Browse the repository at this point in the history
The test was throwing an error `AssertionError: expected '' to be 'test'` because the input is of type number.
  • Loading branch information
ilyasherstoboev authored Feb 10, 2025
1 parent fe14948 commit 85bfdf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/advanced/v-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ test('modelValue and currency should be updated', async () => {
})

const [currencyInput, modelValueInput] = wrapper.findAll('input')
await modelValueInput.setValue('test')
await modelValueInput.setValue('100')
await currencyInput.setValue('£')

expect(wrapper.props('modelValue')).toBe('test')
expect(wrapper.props('modelValue')).toBe('100')
expect(wrapper.props('currency')).toBe('£')
})
```

0 comments on commit 85bfdf4

Please sign in to comment.