From c9d6fb2139a97cbc106d8fa4123d488d7dbb339c Mon Sep 17 00:00:00 2001 From: Hans Christian Reinl Date: Mon, 25 May 2020 14:17:14 +0200 Subject: [PATCH] Upgrade snapshots --- .../__snapshots__/BackButton.test.tsx.snap | 2 +- .../__snapshots__/Form.test.tsx.snap | 40 +++++++++++++++---- .../FormFieldInput.test.tsx.snap | 2 + 3 files changed, 35 insertions(+), 9 deletions(-) diff --git a/src/BackButton/__snapshots__/BackButton.test.tsx.snap b/src/BackButton/__snapshots__/BackButton.test.tsx.snap index 061becd..e1a3bca 100644 --- a/src/BackButton/__snapshots__/BackButton.test.tsx.snap +++ b/src/BackButton/__snapshots__/BackButton.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Back Button renders correctly 1`] = ` - `; diff --git a/src/Form/__tests__/__snapshots__/Form.test.tsx.snap b/src/Form/__tests__/__snapshots__/Form.test.tsx.snap index bfe93fd..aaf0962 100644 --- a/src/Form/__tests__/__snapshots__/Form.test.tsx.snap +++ b/src/Form/__tests__/__snapshots__/Form.test.tsx.snap @@ -11,7 +11,7 @@ exports[`renders correctly 1`] = ` "entries": Array [ Object { "hash": "", - "key": "a486xk", + "key": "bbaqvf", "pathname": "/", "search": "", "state": undefined, @@ -25,7 +25,7 @@ exports[`renders correctly 1`] = ` "listen": [Function], "location": Object { "hash": "", - "key": "a486xk", + "key": "bbaqvf", "pathname": "/", "search": "", "state": undefined, @@ -58,7 +58,19 @@ exports[`renders correctly 1`] = ` "width": "small", }, Object { - "id": "select", + "id": "select.first", + "isRequired": true, + "options": Array [ + "Foo", + "Bar", + "Baz", + ], + "title": "Select", + "type": "select", + "width": "small", + }, + Object { + "id": "select.second", "isRequired": true, "options": Array [ "Foo", @@ -117,8 +129,8 @@ exports[`renders correctly 1`] = ` "type": "content", }, Object { - "beforeSubmit": [Function], "id": "email", + "onBeforeSubmit": [Function], "title": "Email", "type": "email", "width": "mid", @@ -264,7 +276,7 @@ exports[`renders correctly with content 1`] = ` "entries": Array [ Object { "hash": "", - "key": "gryehk", + "key": "vozkoo", "pathname": "/", "search": "", "state": undefined, @@ -278,7 +290,7 @@ exports[`renders correctly with content 1`] = ` "listen": [Function], "location": Object { "hash": "", - "key": "gryehk", + "key": "vozkoo", "pathname": "/", "search": "", "state": undefined, @@ -311,7 +323,19 @@ exports[`renders correctly with content 1`] = ` "width": "small", }, Object { - "id": "select", + "id": "select.first", + "isRequired": true, + "options": Array [ + "Foo", + "Bar", + "Baz", + ], + "title": "Select", + "type": "select", + "width": "small", + }, + Object { + "id": "select.second", "isRequired": true, "options": Array [ "Foo", @@ -370,8 +394,8 @@ exports[`renders correctly with content 1`] = ` "type": "content", }, Object { - "beforeSubmit": [Function], "id": "email", + "onBeforeSubmit": [Function], "title": "Email", "type": "email", "width": "mid", diff --git a/src/Form/__tests__/__snapshots__/FormFieldInput.test.tsx.snap b/src/Form/__tests__/__snapshots__/FormFieldInput.test.tsx.snap index 01b2206..83b955a 100644 --- a/src/Form/__tests__/__snapshots__/FormFieldInput.test.tsx.snap +++ b/src/Form/__tests__/__snapshots__/FormFieldInput.test.tsx.snap @@ -13,6 +13,7 @@ exports[`renders correctly 1`] = ` id="" margin="normal" multiline={false} + onChange={[Function]} required={false} rows={1} select={false} @@ -33,6 +34,7 @@ exports[`renders disabled 1`] = ` id="" margin="normal" multiline={false} + onChange={[Function]} required={false} rows={1} select={false}