From a03eab67fcd2ff9efeab5b160ce6897e6abf915e Mon Sep 17 00:00:00 2001 From: Hans Christian Reinl Date: Mon, 11 May 2020 17:01:22 +0200 Subject: [PATCH] Upgrade snapshots --- ....test.jsx.snap => AddButton.test.tsx.snap} | 0 .../__snapshots__/AppContainer.test.jsx.snap | 3 - .../__snapshots__/AppContainer.test.tsx.snap | 302 + ...test.jsx.snap => BackButton.test.tsx.snap} | 2 +- src/Base/__snapshots__/Base.test.jsx.snap | 10341 ---------------- src/Base/__snapshots__/Base.test.tsx.snap | 117 + ...rm.test.jsx.snap => Confirm.test.tsx.snap} | 11 +- ...test.jsx.snap => CookieInfo.test.tsx.snap} | 5 +- ....test.jsx.snap => Dashboard.test.tsx.snap} | 2 +- ...t.jsx.snap => DashboardCard.test.tsx.snap} | 2 - ....jsx.snap => DashboardGroup.test.tsx.snap} | 0 ...wer.test.jsx.snap => Drawer.test.tsx.snap} | 14 +- ...{Form.test.jsx.snap => Form.test.tsx.snap} | 17 +- ....jsx.snap => FormFieldInput.test.tsx.snap} | 10 +- ...jsx.snap => FormFieldSwitch.test.tsx.snap} | 26 +- ...der.test.jsx.snap => Header.test.tsx.snap} | 0 ...ng.test.jsx.snap => Listing.test.tsx.snap} | 591 +- ...t.jsx.snap => ListingHeader.test.tsx.snap} | 1 + ...est.jsx.snap => ListingLine.test.tsx.snap} | 3 + ...t.jsx.snap => ListingLoader.test.tsx.snap} | 1 + ...t.jsx.snap => ListingSearch.test.tsx.snap} | 0 ....jsx.snap => ListingToolbar.test.tsx.snap} | 0 src/Menu/__snapshots__/Menu.test.jsx.snap | 607 - src/Menu/__snapshots__/Menu.test.tsx.snap | 299 + ...m.test.jsx.snap => MenuItem.test.tsx.snap} | 15 +- ...ch.test.jsx.snap => NoMatch.test.tsx.snap} | 0 ...r.test.jsx.snap => Snackbar.test.tsx.snap} | 2 +- ...{Tabs.test.jsx.snap => Tabs.test.tsx.snap} | 0 28 files changed, 1049 insertions(+), 11322 deletions(-) rename src/AddButton/__snapshots__/{AddButton.test.jsx.snap => AddButton.test.tsx.snap} (100%) delete mode 100644 src/AppContainer/__snapshots__/AppContainer.test.jsx.snap create mode 100644 src/AppContainer/__snapshots__/AppContainer.test.tsx.snap rename src/BackButton/__snapshots__/{BackButton.test.jsx.snap => BackButton.test.tsx.snap} (79%) delete mode 100644 src/Base/__snapshots__/Base.test.jsx.snap create mode 100644 src/Base/__snapshots__/Base.test.tsx.snap rename src/Confirm/__snapshots__/{Confirm.test.jsx.snap => Confirm.test.tsx.snap} (63%) rename src/CookieInfo/__snapshots__/{CookieInfo.test.jsx.snap => CookieInfo.test.tsx.snap} (80%) rename src/Dashboard/__snapshots__/{Dashboard.test.jsx.snap => Dashboard.test.tsx.snap} (96%) rename src/Dashboard/__snapshots__/{DashboardCard.test.jsx.snap => DashboardCard.test.tsx.snap} (96%) rename src/Dashboard/__snapshots__/{DashboardGroup.test.jsx.snap => DashboardGroup.test.tsx.snap} (100%) rename src/Drawer/__snapshots__/{Drawer.test.jsx.snap => Drawer.test.tsx.snap} (68%) rename src/Form/__snapshots__/{Form.test.jsx.snap => Form.test.tsx.snap} (97%) rename src/Form/__snapshots__/{FormFieldInput.test.jsx.snap => FormFieldInput.test.tsx.snap} (86%) rename src/Form/__snapshots__/{FormFieldSwitch.test.jsx.snap => FormFieldSwitch.test.tsx.snap} (61%) rename src/Header/__snapshots__/{Header.test.jsx.snap => Header.test.tsx.snap} (100%) rename src/Listing/__snapshots__/{Listing.test.jsx.snap => Listing.test.tsx.snap} (98%) rename src/Listing/__snapshots__/{ListingHeader.test.jsx.snap => ListingHeader.test.tsx.snap} (90%) rename src/Listing/__snapshots__/{ListingLine.test.jsx.snap => ListingLine.test.tsx.snap} (94%) rename src/Listing/__snapshots__/{ListingLoader.test.jsx.snap => ListingLoader.test.tsx.snap} (83%) rename src/Listing/__snapshots__/{ListingSearch.test.jsx.snap => ListingSearch.test.tsx.snap} (100%) rename src/Listing/__snapshots__/{ListingToolbar.test.jsx.snap => ListingToolbar.test.tsx.snap} (100%) delete mode 100644 src/Menu/__snapshots__/Menu.test.jsx.snap create mode 100644 src/Menu/__snapshots__/Menu.test.tsx.snap rename src/Menu/__snapshots__/{MenuItem.test.jsx.snap => MenuItem.test.tsx.snap} (69%) rename src/NoMatch/__snapshots__/{NoMatch.test.jsx.snap => NoMatch.test.tsx.snap} (100%) rename src/Snackbar/__snapshots__/{Snackbar.test.jsx.snap => Snackbar.test.tsx.snap} (94%) rename src/Tabs/__snapshots__/{Tabs.test.jsx.snap => Tabs.test.tsx.snap} (100%) diff --git a/src/AddButton/__snapshots__/AddButton.test.jsx.snap b/src/AddButton/__snapshots__/AddButton.test.tsx.snap similarity index 100% rename from src/AddButton/__snapshots__/AddButton.test.jsx.snap rename to src/AddButton/__snapshots__/AddButton.test.tsx.snap diff --git a/src/AppContainer/__snapshots__/AppContainer.test.jsx.snap b/src/AppContainer/__snapshots__/AppContainer.test.jsx.snap deleted file mode 100644 index 3c01db6..0000000 --- a/src/AppContainer/__snapshots__/AppContainer.test.jsx.snap +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Component Info renders correctly 1`] = ``; diff --git a/src/AppContainer/__snapshots__/AppContainer.test.tsx.snap b/src/AppContainer/__snapshots__/AppContainer.test.tsx.snap new file mode 100644 index 0000000..e344533 --- /dev/null +++ b/src/AppContainer/__snapshots__/AppContainer.test.tsx.snap @@ -0,0 +1,302 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Component Info renders correctly 1`] = ` + + + + Foo + + +`; diff --git a/src/BackButton/__snapshots__/BackButton.test.jsx.snap b/src/BackButton/__snapshots__/BackButton.test.tsx.snap similarity index 79% rename from src/BackButton/__snapshots__/BackButton.test.jsx.snap rename to src/BackButton/__snapshots__/BackButton.test.tsx.snap index e96cac4..061becd 100644 --- a/src/BackButton/__snapshots__/BackButton.test.jsx.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/Base/__snapshots__/Base.test.jsx.snap b/src/Base/__snapshots__/Base.test.jsx.snap deleted file mode 100644 index fe2ba71..0000000 --- a/src/Base/__snapshots__/Base.test.jsx.snap +++ /dev/null @@ -1,10341 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Base call function when cookie is accepted 1`] = ` - - <_class - hasCookieInfo={true} - hasHeader={true} - isHeaderFixed={true} - isOpen={false} - menuData={ - Array [ - Object { - "icon": null, - "title": "Dashboard", - "type": "link", - "url": "/", - }, - Object { - "isDisabled": true, - "title": "New portfolio", - "type": "link", - "url": "/portfolio", - }, - Object { - "type": "divider", - }, - Object { - "icon": Object { - "$$typeof": Symbol(react.memo), - "compare": null, - "displayName": "BugReportIcon", - "muiName": "SvgIcon", - "type": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], - }, - }, - "title": "Report a bug", - "type": "link", - "url": "/bug", - }, - ] - } - menuOpen={true} - rightContent={null} - title="Foo" - > - - -
- -
-
- - - - -
- - -
- - - - - - - - - - - -
- Foo -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
- - - - - -
-
-
- - - - - - - - - -
- - -
-
-
- - -
- - -
    - - - - - - -
    - - -
    - - - - Dashboard - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    - - - - - - -
    - - -
    - - - - New portfolio - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - - - - - - -
    - - -
    - - - - - - - -
    -
    -
    - - -
    - - - - Report a bug - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
-
- - - - - - - - - -
- - -
- Foo -
-
-
-
-
-
- -
-`; - -exports[`Base click on menu icon if closed changes state 1`] = ` - - <_class - hasCookieInfo={true} - hasHeader={true} - isHeaderFixed={true} - isOpen={false} - menuData={ - Array [ - Object { - "icon": null, - "title": "Dashboard", - "type": "link", - "url": "/", - }, - Object { - "isDisabled": true, - "title": "New portfolio", - "type": "link", - "url": "/portfolio", - }, - Object { - "type": "divider", - }, - Object { - "icon": Object { - "$$typeof": Symbol(react.memo), - "compare": null, - "displayName": "BugReportIcon", - "muiName": "SvgIcon", - "type": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], - }, - }, - "title": "Report a bug", - "type": "link", - "url": "/bug", - }, - ] - } - menuOpen={true} - rightContent={null} - title="Foo" - > - - -
- -
-
- - - - -
- - -
- - - - - - - - - - - -
- Foo -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
- - - - - -
-
-
- - - - - - - - - -
- - -
-
-
- - -
- - -
    - - - - - - -
    - - -
    - - - - Dashboard - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    - - - - - - -
    - - -
    - - - - New portfolio - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - - - - - - -
    - - -
    - - - - - - - -
    -
    -
    - - -
    - - - - Report a bug - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Foo -
-
-
-
-
-
- -
-`; - -exports[`Base click on menu icon if open changes state 1`] = ` - - <_class - hasCookieInfo={true} - hasHeader={true} - isHeaderFixed={true} - isOpen={true} - menuData={ - Array [ - Object { - "icon": null, - "title": "Dashboard", - "type": "link", - "url": "/", - }, - Object { - "isDisabled": true, - "title": "New portfolio", - "type": "link", - "url": "/portfolio", - }, - Object { - "type": "divider", - }, - Object { - "icon": Object { - "$$typeof": Symbol(react.memo), - "compare": null, - "displayName": "BugReportIcon", - "muiName": "SvgIcon", - "type": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], - }, - }, - "title": "Report a bug", - "type": "link", - "url": "/bug", - }, - ] - } - menuOpen={true} - rightContent={null} - title="Foo" - > - - -
- -
-
- - - - -
- - -
- - - - - - - - - - - -
- Foo -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
- - - - - -
-
-
- - - - - - - - - -
- - -
-
-
- - -
- - -
    - - - - - - -
    - - -
    - - - - Dashboard - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    - - - - - - -
    - - -
    - - - - New portfolio - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - - - - - - -
    - - -
    - - - - - - - -
    -
    -
    - - -
    - - - - Report a bug - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Foo -
-
-
-
-
-
- -
-`; - -exports[`Base click on title 1`] = ` -
-
-
-
- -

- Foo -

-
-
-
-
-
-
-
-
- -
-
-
-
    -
    -
    - - Dashboard - -
    - -
    -
    -
    - - New portfolio - -
    - -
    -
    -
    - -
    - - Report a bug - -
    - -
    -
-
-
-
-
-
-
- Foo -
-
-
-
-`; - -exports[`Base renders correctly 1`] = ` -<_class - hasCookieInfo={true} - hasHeader={true} - isHeaderFixed={true} - menuData={ - Array [ - Object { - "icon": null, - "title": "Dashboard", - "type": "link", - "url": "/", - }, - Object { - "isDisabled": true, - "title": "New portfolio", - "type": "link", - "url": "/portfolio", - }, - Object { - "type": "divider", - }, - Object { - "icon": Object { - "$$typeof": Symbol(react.memo), - "compare": null, - "displayName": "BugReportIcon", - "muiName": "SvgIcon", - "type": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], - }, - }, - "title": "Report a bug", - "type": "link", - "url": "/bug", - }, - ] - } - menuOpen={true} - rightContent={null} - title="Foo" -> -
- Foo -
- -`; - -exports[`Base renders correctly without header 1`] = ` -<_class - hasCookieInfo={true} - hasHeader={false} - isHeaderFixed={true} - menuData={ - Array [ - Object { - "icon": null, - "title": "Dashboard", - "type": "link", - "url": "/", - }, - Object { - "isDisabled": true, - "title": "New portfolio", - "type": "link", - "url": "/portfolio", - }, - Object { - "type": "divider", - }, - Object { - "icon": Object { - "$$typeof": Symbol(react.memo), - "compare": null, - "displayName": "BugReportIcon", - "muiName": "SvgIcon", - "type": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], - }, - }, - "title": "Report a bug", - "type": "link", - "url": "/bug", - }, - ] - } - menuOpen={true} - rightContent={null} - title="Foo" -> -
- Foo -
- -`; - -exports[`Base renders with drawer open 1`] = ` -<_class - hasCookieInfo={true} - hasHeader={false} - isHeaderFixed={true} - isOpen={true} - menuData={ - Array [ - Object { - "icon": null, - "title": "Dashboard", - "type": "link", - "url": "/", - }, - Object { - "isDisabled": true, - "title": "New portfolio", - "type": "link", - "url": "/portfolio", - }, - Object { - "type": "divider", - }, - Object { - "icon": Object { - "$$typeof": Symbol(react.memo), - "compare": null, - "displayName": "BugReportIcon", - "muiName": "SvgIcon", - "type": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], - }, - }, - "title": "Report a bug", - "type": "link", - "url": "/bug", - }, - ] - } - menuOpen={true} - rightContent={null} - title="Foo" -> -
- Foo -
- -`; diff --git a/src/Base/__snapshots__/Base.test.tsx.snap b/src/Base/__snapshots__/Base.test.tsx.snap new file mode 100644 index 0000000..18fd389 --- /dev/null +++ b/src/Base/__snapshots__/Base.test.tsx.snap @@ -0,0 +1,117 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Base renders correctly 1`] = ` + + + , + "title": "Report a bug", + "type": "link", + "url": "/bug", + }, + ] + } + menuOpen={true} + title="Foo" +> +
+ Foo +
+
+`; + +exports[`Base renders correctly without header 1`] = ` + + + , + "title": "Report a bug", + "type": "link", + "url": "/bug", + }, + ] + } + menuOpen={true} + title="Foo" +> +
+ Foo +
+
+`; + +exports[`Base renders with drawer open 1`] = ` + + + , + "title": "Report a bug", + "type": "link", + "url": "/bug", + }, + ] + } + menuOpen={true} + title="Foo" +> +
+ Foo +
+
+`; diff --git a/src/Confirm/__snapshots__/Confirm.test.jsx.snap b/src/Confirm/__snapshots__/Confirm.test.tsx.snap similarity index 63% rename from src/Confirm/__snapshots__/Confirm.test.jsx.snap rename to src/Confirm/__snapshots__/Confirm.test.tsx.snap index 800dc67..6af6916 100644 --- a/src/Confirm/__snapshots__/Confirm.test.jsx.snap +++ b/src/Confirm/__snapshots__/Confirm.test.tsx.snap @@ -1,12 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Confirm renders correctly 1`] = ` - Foo diff --git a/src/Dashboard/__snapshots__/Dashboard.test.jsx.snap b/src/Dashboard/__snapshots__/Dashboard.test.tsx.snap similarity index 96% rename from src/Dashboard/__snapshots__/Dashboard.test.jsx.snap rename to src/Dashboard/__snapshots__/Dashboard.test.tsx.snap index 9026571..eec02b4 100644 --- a/src/Dashboard/__snapshots__/Dashboard.test.jsx.snap +++ b/src/Dashboard/__snapshots__/Dashboard.test.tsx.snap @@ -23,7 +23,7 @@ exports[`renders correctly 1`] = ` } } > - @@ -34,7 +33,6 @@ exports[`renders disabled 1`] = ` } description="desc" handleClick={[Function]} - icon={null} isDisabled={true} title="Title" /> diff --git a/src/Dashboard/__snapshots__/DashboardGroup.test.jsx.snap b/src/Dashboard/__snapshots__/DashboardGroup.test.tsx.snap similarity index 100% rename from src/Dashboard/__snapshots__/DashboardGroup.test.jsx.snap rename to src/Dashboard/__snapshots__/DashboardGroup.test.tsx.snap diff --git a/src/Drawer/__snapshots__/Drawer.test.jsx.snap b/src/Drawer/__snapshots__/Drawer.test.tsx.snap similarity index 68% rename from src/Drawer/__snapshots__/Drawer.test.jsx.snap rename to src/Drawer/__snapshots__/Drawer.test.tsx.snap index 5bb31da..26f3e33 100644 --- a/src/Drawer/__snapshots__/Drawer.test.jsx.snap +++ b/src/Drawer/__snapshots__/Drawer.test.tsx.snap @@ -11,7 +11,6 @@ exports[`renders correctly 1`] = ` data={ Array [ Object { - "icon": null, "title": "Dashboard", "type": "link", "url": "/", @@ -26,16 +25,9 @@ exports[`renders correctly 1`] = ` "type": "divider", }, Object { - "icon": Object { - "$$typeof": Symbol(react.memo), - "compare": null, - "displayName": "BugReportIcon", - "muiName": "SvgIcon", - "type": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], - }, - }, + "icon": + + , "title": "Report a bug", "type": "link", "url": "/bug", diff --git a/src/Form/__snapshots__/Form.test.jsx.snap b/src/Form/__snapshots__/Form.test.tsx.snap similarity index 97% rename from src/Form/__snapshots__/Form.test.jsx.snap rename to src/Form/__snapshots__/Form.test.tsx.snap index 76e6149..378cd2b 100644 --- a/src/Form/__snapshots__/Form.test.jsx.snap +++ b/src/Form/__snapshots__/Form.test.tsx.snap @@ -11,7 +11,7 @@ exports[`renders correctly 1`] = ` "entries": Array [ Object { "hash": "", - "key": "cj6ltz", + "key": "agaqcl", "pathname": "/", "search": "", "state": undefined, @@ -25,7 +25,7 @@ exports[`renders correctly 1`] = ` "listen": [Function], "location": Object { "hash": "", - "key": "cj6ltz", + "key": "agaqcl", "pathname": "/", "search": "", "state": undefined, @@ -127,7 +127,7 @@ exports[`renders correctly 1`] = ` Object { "data": Array [ Object { - "iconEnd": , + "iconEnd": , "id": "nested-text", "title": "Nested Text", "type": "text", @@ -283,10 +283,7 @@ exports[`renders correctly 1`] = ` }, ] } - isFixedSubmitButton={false} - onDataChanged={[Function]} onSubmit={[Function]} - submitText="Save" /> `; @@ -302,7 +299,7 @@ exports[`renders correctly with content 1`] = ` "entries": Array [ Object { "hash": "", - "key": "2z6i33", + "key": "idzrse", "pathname": "/", "search": "", "state": undefined, @@ -316,7 +313,7 @@ exports[`renders correctly with content 1`] = ` "listen": [Function], "location": Object { "hash": "", - "key": "2z6i33", + "key": "idzrse", "pathname": "/", "search": "", "state": undefined, @@ -418,7 +415,7 @@ exports[`renders correctly with content 1`] = ` Object { "data": Array [ Object { - "iconEnd": , + "iconEnd": , "id": "nested-text", "title": "Nested Text", "type": "text", @@ -574,8 +571,6 @@ exports[`renders correctly with content 1`] = ` }, ] } - isFixedSubmitButton={false} - onDataChanged={[Function]} onSubmit={[Function]} submitText="Save the form" > diff --git a/src/Form/__snapshots__/FormFieldInput.test.jsx.snap b/src/Form/__snapshots__/FormFieldInput.test.tsx.snap similarity index 86% rename from src/Form/__snapshots__/FormFieldInput.test.jsx.snap rename to src/Form/__snapshots__/FormFieldInput.test.tsx.snap index ef1962a..d225ac9 100644 --- a/src/Form/__snapshots__/FormFieldInput.test.jsx.snap +++ b/src/Form/__snapshots__/FormFieldInput.test.tsx.snap @@ -4,9 +4,7 @@ exports[`renders correctly 1`] = ` , + "endAdornment": , } } className="" @@ -14,6 +12,7 @@ exports[`renders correctly 1`] = ` error={false} fullWidth={true} helperText="" + id="" margin="normal" multiline={false} onBlur={[Function]} @@ -31,9 +30,7 @@ exports[`renders disabled 1`] = ` , + "endAdornment": , } } className="" @@ -41,6 +38,7 @@ exports[`renders disabled 1`] = ` error={false} fullWidth={true} helperText="" + id="" margin="normal" multiline={false} onBlur={[Function]} diff --git a/src/Form/__snapshots__/FormFieldSwitch.test.jsx.snap b/src/Form/__snapshots__/FormFieldSwitch.test.tsx.snap similarity index 61% rename from src/Form/__snapshots__/FormFieldSwitch.test.jsx.snap rename to src/Form/__snapshots__/FormFieldSwitch.test.tsx.snap index b742ff5..542e160 100644 --- a/src/Form/__snapshots__/FormFieldSwitch.test.jsx.snap +++ b/src/Form/__snapshots__/FormFieldSwitch.test.tsx.snap @@ -1,10 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders correctly 1`] = ` -
- + } - disabled={false} label="Title" />
`; exports[`renders disabled 1`] = ` -
- + - + } - disabled={false} label="Title" /> - + test - +
`; diff --git a/src/Header/__snapshots__/Header.test.jsx.snap b/src/Header/__snapshots__/Header.test.tsx.snap similarity index 100% rename from src/Header/__snapshots__/Header.test.jsx.snap rename to src/Header/__snapshots__/Header.test.tsx.snap diff --git a/src/Listing/__snapshots__/Listing.test.jsx.snap b/src/Listing/__snapshots__/Listing.test.tsx.snap similarity index 98% rename from src/Listing/__snapshots__/Listing.test.jsx.snap rename to src/Listing/__snapshots__/Listing.test.tsx.snap index 7277890..b29800f 100644 --- a/src/Listing/__snapshots__/Listing.test.jsx.snap +++ b/src/Listing/__snapshots__/Listing.test.tsx.snap @@ -7,49 +7,26 @@ exports[`Listing renders correctly 1`] = ` Array [ Object { "address": Object { - "city": "Wisokyburgh", - "geo": Object { - "lat": "-43.9509", - "lng": "-34.4618", - }, - "street": "Victor Plains", - "suite": "Suite 879", - "zipcode": "90566-7771", - }, - "company": Object { - "bs": "synergize scalable supply-chains", - "catchPhrase": "Proactive didactic contingency", - "name": "Deckow-Crist", - }, - "email": "Shanna@melissa.tv", - "id": 2, - "name": "Ervin Howell", - "phone": "010-692-6593 x09125", - "username": "Antonette", - "website": "anastasia.net", - }, - Object { - "address": Object { - "city": "Gwenborough", + "city": "McKenziehaven", "geo": Object { - "lat": "-37.3159", - "lng": "81.1496", + "lat": "-68.6102", + "lng": "-47.0653", }, - "street": "Kulas Light", - "suite": "Apt. 556", - "zipcode": "92998-3874", + "street": "Douglas Extension", + "suite": "Suite 847", + "zipcode": "59590-4157", }, "company": Object { - "bs": "harness real-time e-markets", - "catchPhrase": "Multi-layered client-server neural-net", - "name": "Romaguera-Crona", + "bs": "e-enable strategic applications", + "catchPhrase": "Face to face bifurcated interface", + "name": "Romaguera-Jacobson", }, - "email": "Sincere@april.biz", - "id": 1, - "name": "Leanne Graham", - "phone": "1-770-736-8031 x56442", - "username": "Bret", - "website": "hildegard.org", + "email": "Nathan@yesenia.net", + "id": 3, + "name": "Clementine Bauch", + "phone": "1-463-123-4447", + "username": "Samantha", + "website": "ramiro.info", }, Object { "address": Object { @@ -67,81 +44,58 @@ exports[`Listing renders correctly 1`] = ` "catchPhrase": "Centralized empowering task-force", "name": "Hoeger LLC", }, - "email": "Dan.Schulist@karina.biz", - "id": 11, - "name": "Mr. Dan Schulist", + "email": "Rey.Padberg@karina.biz", + "id": 10, + "name": "Clementina DuBuque", "phone": "024-648-3804", - "username": "Dan.Schulist", + "username": "Moriah.Stanton", "website": "ambrose.net", }, Object { "address": Object { - "city": "Bartholomebury", - "geo": Object { - "lat": "24.6463", - "lng": "-168.8889", - }, - "street": "Dayna Park", - "suite": "Suite 449", - "zipcode": "76495-3109", - }, - "company": Object { - "bs": "aggregate real-time technologies", - "catchPhrase": "Switchable contextually-based project", - "name": "Yost and Sons", - }, - "email": "Chaim_McDermott@dana.io", - "id": 9, - "name": "Glenna Reichert", - "phone": "(775)976-6794 x41206", - "username": "Delphine", - "website": "conrad.com", - }, - Object { - "address": Object { - "city": "Howemouth", + "city": "Aliyaview", "geo": Object { - "lat": "24.8918", - "lng": "21.8984", + "lat": "-14.3990", + "lng": "-120.7677", }, - "street": "Rex Trail", - "suite": "Suite 280", - "zipcode": "58804-1099", + "street": "Ellsworth Summit", + "suite": "Suite 729", + "zipcode": "45169", }, "company": Object { - "bs": "generate enterprise e-tailers", - "catchPhrase": "Configurable multimedia task-force", - "name": "Johns Group", + "bs": "e-enable extensible e-tailers", + "catchPhrase": "Implemented secondary concept", + "name": "Abernathy Group", }, - "email": "Telly.Hoeger@billy.biz", - "id": 7, - "name": "Kurtis Weissnat", - "phone": "210.067.6132", - "username": "Elwyn.Skiles", - "website": "elvis.io", + "email": "Sherwood@rosamond.me", + "id": 8, + "name": "Nicholas Runolfsdottir V", + "phone": "586.493.6943 x140", + "username": "Maxime_Nienow", + "website": "jacynthe.com", }, Object { "address": Object { - "city": "Roscoeview", + "city": "South Christy", "geo": Object { - "lat": "-31.8129", - "lng": "62.5342", + "lat": "-71.4197", + "lng": "71.7478", }, - "street": "Skiles Walks", - "suite": "Suite 351", - "zipcode": "33263", + "street": "Norberto Crossing", + "suite": "Apt. 950", + "zipcode": "23505-1337", }, "company": Object { - "bs": "revolutionize end-to-end systems", - "catchPhrase": "User-centric fault-tolerant solution", - "name": "Keebler LLC", + "bs": "e-enable innovative applications", + "catchPhrase": "Synchronised bottom-line interface", + "name": "Considine-Lockman", }, - "email": "Lucio_Hettinger@annie.ca", - "id": 5, - "name": "Chelsey Dietrich", - "phone": "(254)954-1289", - "username": "Kamren", - "website": "demarco.info", + "email": "Karley_Dach@jasper.info", + "id": 6, + "name": "Mrs. Dennis Schulist", + "phone": "1-477-935-8478 x6430", + "username": "Leopoldo_Corkery", + "website": "ola.org", }, Object { "address": Object { @@ -168,49 +122,72 @@ exports[`Listing renders correctly 1`] = ` }, Object { "address": Object { - "city": "South Christy", + "city": "Roscoeview", "geo": Object { - "lat": "-71.4197", - "lng": "71.7478", + "lat": "-31.8129", + "lng": "62.5342", }, - "street": "Norberto Crossing", - "suite": "Apt. 950", - "zipcode": "23505-1337", + "street": "Skiles Walks", + "suite": "Suite 351", + "zipcode": "33263", }, "company": Object { - "bs": "e-enable innovative applications", - "catchPhrase": "Synchronised bottom-line interface", - "name": "Considine-Lockman", + "bs": "revolutionize end-to-end systems", + "catchPhrase": "User-centric fault-tolerant solution", + "name": "Keebler LLC", }, - "email": "Karley_Dach@jasper.info", - "id": 6, - "name": "Mrs. Dennis Schulist", - "phone": "1-477-935-8478 x6430", - "username": "Leopoldo_Corkery", - "website": "ola.org", + "email": "Lucio_Hettinger@annie.ca", + "id": 5, + "name": "Chelsey Dietrich", + "phone": "(254)954-1289", + "username": "Kamren", + "website": "demarco.info", }, Object { "address": Object { - "city": "Aliyaview", + "city": "Howemouth", "geo": Object { - "lat": "-14.3990", - "lng": "-120.7677", + "lat": "24.8918", + "lng": "21.8984", }, - "street": "Ellsworth Summit", - "suite": "Suite 729", - "zipcode": "45169", + "street": "Rex Trail", + "suite": "Suite 280", + "zipcode": "58804-1099", }, "company": Object { - "bs": "e-enable extensible e-tailers", - "catchPhrase": "Implemented secondary concept", - "name": "Abernathy Group", + "bs": "generate enterprise e-tailers", + "catchPhrase": "Configurable multimedia task-force", + "name": "Johns Group", }, - "email": "Sherwood@rosamond.me", - "id": 8, - "name": "Nicholas Runolfsdottir V", - "phone": "586.493.6943 x140", - "username": "Maxime_Nienow", - "website": "jacynthe.com", + "email": "Telly.Hoeger@billy.biz", + "id": 7, + "name": "Kurtis Weissnat", + "phone": "210.067.6132", + "username": "Elwyn.Skiles", + "website": "elvis.io", + }, + Object { + "address": Object { + "city": "Bartholomebury", + "geo": Object { + "lat": "24.6463", + "lng": "-168.8889", + }, + "street": "Dayna Park", + "suite": "Suite 449", + "zipcode": "76495-3109", + }, + "company": Object { + "bs": "aggregate real-time technologies", + "catchPhrase": "Switchable contextually-based project", + "name": "Yost and Sons", + }, + "email": "Chaim_McDermott@dana.io", + "id": 9, + "name": "Glenna Reichert", + "phone": "(775)976-6794 x41206", + "username": "Delphine", + "website": "conrad.com", }, Object { "address": Object { @@ -228,35 +205,58 @@ exports[`Listing renders correctly 1`] = ` "catchPhrase": "Centralized empowering task-force", "name": "Hoeger LLC", }, - "email": "Rey.Padberg@karina.biz", - "id": 10, - "name": "Clementina DuBuque", + "email": "Dan.Schulist@karina.biz", + "id": 11, + "name": "Mr. Dan Schulist", "phone": "024-648-3804", - "username": "Moriah.Stanton", + "username": "Dan.Schulist", "website": "ambrose.net", }, Object { "address": Object { - "city": "McKenziehaven", + "city": "Gwenborough", "geo": Object { - "lat": "-68.6102", - "lng": "-47.0653", + "lat": "-37.3159", + "lng": "81.1496", }, - "street": "Douglas Extension", - "suite": "Suite 847", - "zipcode": "59590-4157", + "street": "Kulas Light", + "suite": "Apt. 556", + "zipcode": "92998-3874", }, "company": Object { - "bs": "e-enable strategic applications", - "catchPhrase": "Face to face bifurcated interface", - "name": "Romaguera-Jacobson", + "bs": "harness real-time e-markets", + "catchPhrase": "Multi-layered client-server neural-net", + "name": "Romaguera-Crona", }, - "email": "Nathan@yesenia.net", - "id": 3, - "name": "Clementine Bauch", - "phone": "1-463-123-4447", - "username": "Samantha", - "website": "ramiro.info", + "email": "Sincere@april.biz", + "id": 1, + "name": "Leanne Graham", + "phone": "1-770-736-8031 x56442", + "username": "Bret", + "website": "hildegard.org", + }, + Object { + "address": Object { + "city": "Wisokyburgh", + "geo": Object { + "lat": "-43.9509", + "lng": "-34.4618", + }, + "street": "Victor Plains", + "suite": "Suite 879", + "zipcode": "90566-7771", + }, + "company": Object { + "bs": "synergize scalable supply-chains", + "catchPhrase": "Proactive didactic contingency", + "name": "Deckow-Crist", + }, + "email": "Shanna@melissa.tv", + "id": 2, + "name": "Ervin Howell", + "phone": "010-692-6593 x09125", + "username": "Antonette", + "website": "anastasia.net", }, ] } @@ -266,7 +266,6 @@ exports[`Listing renders correctly 1`] = ` handleKeyDown={[Function]} handleRequestSort={[Function]} handleSelectAllClick={[Function]} - hasLoader={false} headers={ Array [ Object { @@ -301,6 +300,11 @@ exports[`Listing renders correctly 1`] = ` "label": "Company", "transformContent": [Function], }, + Object { + "id": "menu", + "label": "", + "transformContent": [Function], + }, ] } id={null} @@ -308,7 +312,6 @@ exports[`Listing renders correctly 1`] = ` onClick={[Function]} onFilter={[Function]} onUpdateSelection={[Function]} - order="asc" orderBy="username" origData={null} page={0} @@ -323,7 +326,6 @@ exports[`Listing renders correctly 1`] = ` } selected={Array []} title="Christmas Time" - toolbarContent={} /> `; @@ -335,49 +337,26 @@ exports[`Listing renders correctly with Loader 1`] = ` Array [ Object { "address": Object { - "city": "Wisokyburgh", - "geo": Object { - "lat": "-43.9509", - "lng": "-34.4618", - }, - "street": "Victor Plains", - "suite": "Suite 879", - "zipcode": "90566-7771", - }, - "company": Object { - "bs": "synergize scalable supply-chains", - "catchPhrase": "Proactive didactic contingency", - "name": "Deckow-Crist", - }, - "email": "Shanna@melissa.tv", - "id": 2, - "name": "Ervin Howell", - "phone": "010-692-6593 x09125", - "username": "Antonette", - "website": "anastasia.net", - }, - Object { - "address": Object { - "city": "Gwenborough", + "city": "McKenziehaven", "geo": Object { - "lat": "-37.3159", - "lng": "81.1496", + "lat": "-68.6102", + "lng": "-47.0653", }, - "street": "Kulas Light", - "suite": "Apt. 556", - "zipcode": "92998-3874", + "street": "Douglas Extension", + "suite": "Suite 847", + "zipcode": "59590-4157", }, "company": Object { - "bs": "harness real-time e-markets", - "catchPhrase": "Multi-layered client-server neural-net", - "name": "Romaguera-Crona", + "bs": "e-enable strategic applications", + "catchPhrase": "Face to face bifurcated interface", + "name": "Romaguera-Jacobson", }, - "email": "Sincere@april.biz", - "id": 1, - "name": "Leanne Graham", - "phone": "1-770-736-8031 x56442", - "username": "Bret", - "website": "hildegard.org", + "email": "Nathan@yesenia.net", + "id": 3, + "name": "Clementine Bauch", + "phone": "1-463-123-4447", + "username": "Samantha", + "website": "ramiro.info", }, Object { "address": Object { @@ -395,81 +374,58 @@ exports[`Listing renders correctly with Loader 1`] = ` "catchPhrase": "Centralized empowering task-force", "name": "Hoeger LLC", }, - "email": "Dan.Schulist@karina.biz", - "id": 11, - "name": "Mr. Dan Schulist", + "email": "Rey.Padberg@karina.biz", + "id": 10, + "name": "Clementina DuBuque", "phone": "024-648-3804", - "username": "Dan.Schulist", + "username": "Moriah.Stanton", "website": "ambrose.net", }, Object { "address": Object { - "city": "Bartholomebury", - "geo": Object { - "lat": "24.6463", - "lng": "-168.8889", - }, - "street": "Dayna Park", - "suite": "Suite 449", - "zipcode": "76495-3109", - }, - "company": Object { - "bs": "aggregate real-time technologies", - "catchPhrase": "Switchable contextually-based project", - "name": "Yost and Sons", - }, - "email": "Chaim_McDermott@dana.io", - "id": 9, - "name": "Glenna Reichert", - "phone": "(775)976-6794 x41206", - "username": "Delphine", - "website": "conrad.com", - }, - Object { - "address": Object { - "city": "Howemouth", + "city": "Aliyaview", "geo": Object { - "lat": "24.8918", - "lng": "21.8984", + "lat": "-14.3990", + "lng": "-120.7677", }, - "street": "Rex Trail", - "suite": "Suite 280", - "zipcode": "58804-1099", + "street": "Ellsworth Summit", + "suite": "Suite 729", + "zipcode": "45169", }, "company": Object { - "bs": "generate enterprise e-tailers", - "catchPhrase": "Configurable multimedia task-force", - "name": "Johns Group", + "bs": "e-enable extensible e-tailers", + "catchPhrase": "Implemented secondary concept", + "name": "Abernathy Group", }, - "email": "Telly.Hoeger@billy.biz", - "id": 7, - "name": "Kurtis Weissnat", - "phone": "210.067.6132", - "username": "Elwyn.Skiles", - "website": "elvis.io", + "email": "Sherwood@rosamond.me", + "id": 8, + "name": "Nicholas Runolfsdottir V", + "phone": "586.493.6943 x140", + "username": "Maxime_Nienow", + "website": "jacynthe.com", }, Object { "address": Object { - "city": "Roscoeview", + "city": "South Christy", "geo": Object { - "lat": "-31.8129", - "lng": "62.5342", + "lat": "-71.4197", + "lng": "71.7478", }, - "street": "Skiles Walks", - "suite": "Suite 351", - "zipcode": "33263", + "street": "Norberto Crossing", + "suite": "Apt. 950", + "zipcode": "23505-1337", }, "company": Object { - "bs": "revolutionize end-to-end systems", - "catchPhrase": "User-centric fault-tolerant solution", - "name": "Keebler LLC", + "bs": "e-enable innovative applications", + "catchPhrase": "Synchronised bottom-line interface", + "name": "Considine-Lockman", }, - "email": "Lucio_Hettinger@annie.ca", - "id": 5, - "name": "Chelsey Dietrich", - "phone": "(254)954-1289", - "username": "Kamren", - "website": "demarco.info", + "email": "Karley_Dach@jasper.info", + "id": 6, + "name": "Mrs. Dennis Schulist", + "phone": "1-477-935-8478 x6430", + "username": "Leopoldo_Corkery", + "website": "ola.org", }, Object { "address": Object { @@ -496,49 +452,72 @@ exports[`Listing renders correctly with Loader 1`] = ` }, Object { "address": Object { - "city": "South Christy", + "city": "Roscoeview", "geo": Object { - "lat": "-71.4197", - "lng": "71.7478", + "lat": "-31.8129", + "lng": "62.5342", }, - "street": "Norberto Crossing", - "suite": "Apt. 950", - "zipcode": "23505-1337", + "street": "Skiles Walks", + "suite": "Suite 351", + "zipcode": "33263", }, "company": Object { - "bs": "e-enable innovative applications", - "catchPhrase": "Synchronised bottom-line interface", - "name": "Considine-Lockman", + "bs": "revolutionize end-to-end systems", + "catchPhrase": "User-centric fault-tolerant solution", + "name": "Keebler LLC", }, - "email": "Karley_Dach@jasper.info", - "id": 6, - "name": "Mrs. Dennis Schulist", - "phone": "1-477-935-8478 x6430", - "username": "Leopoldo_Corkery", - "website": "ola.org", + "email": "Lucio_Hettinger@annie.ca", + "id": 5, + "name": "Chelsey Dietrich", + "phone": "(254)954-1289", + "username": "Kamren", + "website": "demarco.info", }, Object { "address": Object { - "city": "Aliyaview", + "city": "Howemouth", "geo": Object { - "lat": "-14.3990", - "lng": "-120.7677", + "lat": "24.8918", + "lng": "21.8984", }, - "street": "Ellsworth Summit", - "suite": "Suite 729", - "zipcode": "45169", + "street": "Rex Trail", + "suite": "Suite 280", + "zipcode": "58804-1099", }, "company": Object { - "bs": "e-enable extensible e-tailers", - "catchPhrase": "Implemented secondary concept", - "name": "Abernathy Group", + "bs": "generate enterprise e-tailers", + "catchPhrase": "Configurable multimedia task-force", + "name": "Johns Group", }, - "email": "Sherwood@rosamond.me", - "id": 8, - "name": "Nicholas Runolfsdottir V", - "phone": "586.493.6943 x140", - "username": "Maxime_Nienow", - "website": "jacynthe.com", + "email": "Telly.Hoeger@billy.biz", + "id": 7, + "name": "Kurtis Weissnat", + "phone": "210.067.6132", + "username": "Elwyn.Skiles", + "website": "elvis.io", + }, + Object { + "address": Object { + "city": "Bartholomebury", + "geo": Object { + "lat": "24.6463", + "lng": "-168.8889", + }, + "street": "Dayna Park", + "suite": "Suite 449", + "zipcode": "76495-3109", + }, + "company": Object { + "bs": "aggregate real-time technologies", + "catchPhrase": "Switchable contextually-based project", + "name": "Yost and Sons", + }, + "email": "Chaim_McDermott@dana.io", + "id": 9, + "name": "Glenna Reichert", + "phone": "(775)976-6794 x41206", + "username": "Delphine", + "website": "conrad.com", }, Object { "address": Object { @@ -556,35 +535,58 @@ exports[`Listing renders correctly with Loader 1`] = ` "catchPhrase": "Centralized empowering task-force", "name": "Hoeger LLC", }, - "email": "Rey.Padberg@karina.biz", - "id": 10, - "name": "Clementina DuBuque", + "email": "Dan.Schulist@karina.biz", + "id": 11, + "name": "Mr. Dan Schulist", "phone": "024-648-3804", - "username": "Moriah.Stanton", + "username": "Dan.Schulist", "website": "ambrose.net", }, Object { "address": Object { - "city": "McKenziehaven", + "city": "Gwenborough", "geo": Object { - "lat": "-68.6102", - "lng": "-47.0653", + "lat": "-37.3159", + "lng": "81.1496", }, - "street": "Douglas Extension", - "suite": "Suite 847", - "zipcode": "59590-4157", + "street": "Kulas Light", + "suite": "Apt. 556", + "zipcode": "92998-3874", }, "company": Object { - "bs": "e-enable strategic applications", - "catchPhrase": "Face to face bifurcated interface", - "name": "Romaguera-Jacobson", + "bs": "harness real-time e-markets", + "catchPhrase": "Multi-layered client-server neural-net", + "name": "Romaguera-Crona", }, - "email": "Nathan@yesenia.net", - "id": 3, - "name": "Clementine Bauch", - "phone": "1-463-123-4447", - "username": "Samantha", - "website": "ramiro.info", + "email": "Sincere@april.biz", + "id": 1, + "name": "Leanne Graham", + "phone": "1-770-736-8031 x56442", + "username": "Bret", + "website": "hildegard.org", + }, + Object { + "address": Object { + "city": "Wisokyburgh", + "geo": Object { + "lat": "-43.9509", + "lng": "-34.4618", + }, + "street": "Victor Plains", + "suite": "Suite 879", + "zipcode": "90566-7771", + }, + "company": Object { + "bs": "synergize scalable supply-chains", + "catchPhrase": "Proactive didactic contingency", + "name": "Deckow-Crist", + }, + "email": "Shanna@melissa.tv", + "id": 2, + "name": "Ervin Howell", + "phone": "010-692-6593 x09125", + "username": "Antonette", + "website": "anastasia.net", }, ] } @@ -629,6 +631,11 @@ exports[`Listing renders correctly with Loader 1`] = ` "label": "Company", "transformContent": [Function], }, + Object { + "id": "menu", + "label": "", + "transformContent": [Function], + }, ] } id={null} @@ -636,7 +643,6 @@ exports[`Listing renders correctly with Loader 1`] = ` onClick={[Function]} onFilter={[Function]} onUpdateSelection={[Function]} - order="asc" orderBy="username" origData={null} page={0} @@ -651,7 +657,6 @@ exports[`Listing renders correctly with Loader 1`] = ` } selected={Array []} title="Christmas Time" - toolbarContent={} /> `; diff --git a/src/Listing/__snapshots__/ListingHeader.test.jsx.snap b/src/Listing/__snapshots__/ListingHeader.test.tsx.snap similarity index 90% rename from src/Listing/__snapshots__/ListingHeader.test.jsx.snap rename to src/Listing/__snapshots__/ListingHeader.test.tsx.snap index 18a4482..af17560 100644 --- a/src/Listing/__snapshots__/ListingHeader.test.jsx.snap +++ b/src/Listing/__snapshots__/ListingHeader.test.tsx.snap @@ -5,6 +5,7 @@ exports[`renders correctly 1`] = ` classes={ Object { "root": "MuiTable-root", + "stickyHeader": "MuiTable-stickyHeader", } } > diff --git a/src/Listing/__snapshots__/ListingLine.test.jsx.snap b/src/Listing/__snapshots__/ListingLine.test.tsx.snap similarity index 94% rename from src/Listing/__snapshots__/ListingLine.test.jsx.snap rename to src/Listing/__snapshots__/ListingLine.test.tsx.snap index a030be8..9649325 100644 --- a/src/Listing/__snapshots__/ListingLine.test.jsx.snap +++ b/src/Listing/__snapshots__/ListingLine.test.tsx.snap @@ -5,6 +5,7 @@ exports[`renders correctly 1`] = ` classes={ Object { "root": "MuiTable-root", + "stickyHeader": "MuiTable-stickyHeader", } } > @@ -45,6 +46,7 @@ exports[`renders highlighted 1`] = ` classes={ Object { "root": "MuiTable-root", + "stickyHeader": "MuiTable-stickyHeader", } } > @@ -91,6 +93,7 @@ exports[`renders selected 1`] = ` classes={ Object { "root": "MuiTable-root", + "stickyHeader": "MuiTable-stickyHeader", } } > diff --git a/src/Listing/__snapshots__/ListingLoader.test.jsx.snap b/src/Listing/__snapshots__/ListingLoader.test.tsx.snap similarity index 83% rename from src/Listing/__snapshots__/ListingLoader.test.jsx.snap rename to src/Listing/__snapshots__/ListingLoader.test.tsx.snap index acc2e94..62a0c05 100644 --- a/src/Listing/__snapshots__/ListingLoader.test.jsx.snap +++ b/src/Listing/__snapshots__/ListingLoader.test.tsx.snap @@ -5,6 +5,7 @@ exports[`renders correctly 1`] = ` classes={ Object { "root": "MuiTable-root", + "stickyHeader": "MuiTable-stickyHeader", } } > diff --git a/src/Listing/__snapshots__/ListingSearch.test.jsx.snap b/src/Listing/__snapshots__/ListingSearch.test.tsx.snap similarity index 100% rename from src/Listing/__snapshots__/ListingSearch.test.jsx.snap rename to src/Listing/__snapshots__/ListingSearch.test.tsx.snap diff --git a/src/Listing/__snapshots__/ListingToolbar.test.jsx.snap b/src/Listing/__snapshots__/ListingToolbar.test.tsx.snap similarity index 100% rename from src/Listing/__snapshots__/ListingToolbar.test.jsx.snap rename to src/Listing/__snapshots__/ListingToolbar.test.tsx.snap diff --git a/src/Menu/__snapshots__/Menu.test.jsx.snap b/src/Menu/__snapshots__/Menu.test.jsx.snap deleted file mode 100644 index 179671f..0000000 --- a/src/Menu/__snapshots__/Menu.test.jsx.snap +++ /dev/null @@ -1,607 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`renders correctly 1`] = ` - - -
- - -
    - - - - - - -
    - - -
    - - - - - - - -
    -
    -
    - - -
    - - - - Title - - - -
    -
    -
    - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
-
-
-
-
-
-`; diff --git a/src/Menu/__snapshots__/Menu.test.tsx.snap b/src/Menu/__snapshots__/Menu.test.tsx.snap new file mode 100644 index 0000000..6e16ae7 --- /dev/null +++ b/src/Menu/__snapshots__/Menu.test.tsx.snap @@ -0,0 +1,299 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders correctly 1`] = ` +, + "title": "Title", + "type": "link", + "url": "/", + }, + ] + } + redirectTo={[Function]} +> + , + "title": "Title", + "type": "link", + "url": "/", + }, + ] + } + redirectTo={[Function]} + > +
+ + +
    + } + key="menu-0" + redirectTo={[Function]} + title="Title" + url="/" + > + } + isDisabled={false} + redirectTo={[Function]} + title="Title" + url="/" + > + + + + +
    + + +
    + + + + + + + + + +
    +
    +
    + + +
    + + + + Title + + + +
    +
    +
    + + + + + + + +
    +
    +
    +
    +
    +
    +
    +
+
+
+
+
+
+`; diff --git a/src/Menu/__snapshots__/MenuItem.test.jsx.snap b/src/Menu/__snapshots__/MenuItem.test.tsx.snap similarity index 69% rename from src/Menu/__snapshots__/MenuItem.test.jsx.snap rename to src/Menu/__snapshots__/MenuItem.test.tsx.snap index 4758330..2252dad 100644 --- a/src/Menu/__snapshots__/MenuItem.test.jsx.snap +++ b/src/Menu/__snapshots__/MenuItem.test.tsx.snap @@ -7,7 +7,6 @@ exports[`renders correctly 1`] = ` "isDisabled": "MenuItem-isDisabled-1", } } - icon={null} isDisabled={false} redirectTo={[Function]} title="Title" @@ -22,7 +21,6 @@ exports[`renders correctly disabled 1`] = ` "isDisabled": "MenuItem-isDisabled-1", } } - icon={null} isDisabled={true} redirectTo={[Function]} title="Title" @@ -37,18 +35,7 @@ exports[`renders correctly with icon 1`] = ` "isDisabled": "MenuItem-isDisabled-1", } } - icon={ - Object { - "$$typeof": Symbol(react.memo), - "compare": null, - "displayName": "AccessAlarmIcon", - "muiName": "SvgIcon", - "type": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], - }, - } - } + icon={} isDisabled={false} redirectTo={[Function]} title="Title" diff --git a/src/NoMatch/__snapshots__/NoMatch.test.jsx.snap b/src/NoMatch/__snapshots__/NoMatch.test.tsx.snap similarity index 100% rename from src/NoMatch/__snapshots__/NoMatch.test.jsx.snap rename to src/NoMatch/__snapshots__/NoMatch.test.tsx.snap diff --git a/src/Snackbar/__snapshots__/Snackbar.test.jsx.snap b/src/Snackbar/__snapshots__/Snackbar.test.tsx.snap similarity index 94% rename from src/Snackbar/__snapshots__/Snackbar.test.jsx.snap rename to src/Snackbar/__snapshots__/Snackbar.test.tsx.snap index e769f10..5c375a5 100644 --- a/src/Snackbar/__snapshots__/Snackbar.test.jsx.snap +++ b/src/Snackbar/__snapshots__/Snackbar.test.tsx.snap @@ -2,7 +2,7 @@ exports[`renders correctly 1`] = `