mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
fix(Form)!: resolve async validation in yup & issue directly mutate state (#2702)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -422,7 +422,6 @@ describe('Form', () => {
|
||||
`
|
||||
})
|
||||
const form = wrapper.setupState.form
|
||||
const state = wrapper.setupState.state
|
||||
|
||||
const inputEl = wrapper.find('#input')
|
||||
inputEl.setValue(input.value)
|
||||
@@ -430,7 +429,6 @@ describe('Form', () => {
|
||||
form.value.submit()
|
||||
await flushPromises()
|
||||
|
||||
expect(state.value).toEqual(expected.value)
|
||||
expect(wrapper.setupState.onSubmit).toHaveBeenCalledWith(expect.objectContaining({
|
||||
data: expected
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user