Skip to content

Commit

Permalink
Automagically formatted by Duti!
Browse files Browse the repository at this point in the history
  • Loading branch information
decrapifier committed Nov 4, 2024
1 parent 3d3a463 commit 0838629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ describe('submit()', () => {
const submit = async () => {
throw new ValidationError('My submit failed', {
'location.addresses.0.tenants.0': ['invalid format'],
'': ['top level error']
'': ['top level error'],
})
}
form = Form({ fields: goodFields, value: goodValue, submit })
Expand All @@ -439,11 +439,11 @@ describe('submit()', () => {
expect(form.submit.state.error.message).toBe('My submit failed')
expect(form.submit.state.error.cause).toEqual({
'location.addresses.0.tenants.0': ['invalid format'],
'': ['top level error']
'': ['top level error'],
})
expect(form.errors).toEqual({
'location.addresses.0.tenants.0': ['invalid format'],
'': ['top level error']
'': ['top level error'],
})
expect(form.submitError).toBe('My submit failed')
expect(result).toBeUndefined()
Expand Down

0 comments on commit 0838629

Please sign in to comment.