mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
refactor(Form): rename validation functions and vars for clarity (#3029)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -337,7 +337,7 @@ describe('Form', () => {
|
||||
expect(wrapper.setupState.onSubmit).not.toHaveBeenCalled()
|
||||
expect(wrapper.setupState.onError).toHaveBeenCalledTimes(1)
|
||||
const onErrorCallArgs = wrapper.setupState.onError.mock.lastCall[0]
|
||||
expect(onErrorCallArgs.childrens[0].errors).toMatchObject([{ id: 'nestedInput', name: 'field', message: 'Required' }])
|
||||
expect(onErrorCallArgs.children[0].errors).toMatchObject([{ id: 'nestedInput', name: 'field', message: 'Required' }])
|
||||
expect(onErrorCallArgs.errors).toMatchObject([
|
||||
{ id: 'emailInput', name: 'email', message: 'Required' },
|
||||
{ id: 'passwordInput', name: 'password', message: 'Required' }
|
||||
|
||||
Reference in New Issue
Block a user