From 0838629a17f0b273b41d3d3de3b45186e54bd25f Mon Sep 17 00:00:00 2001 From: Decrapifier Date: Mon, 4 Nov 2024 19:38:28 +0000 Subject: [PATCH] Automagically formatted by Duti! https://github.com/smartprocure/duti --- src/index.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.test.js b/src/index.test.js index d7821d0..36d8fd4 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -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 }) @@ -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()