From 24db1f998e626d1604ed6d5c3a3de298d1ee0602 Mon Sep 17 00:00:00 2001 From: Aaron Moore Date: Thu, 16 Dec 2021 09:22:32 +0000 Subject: [PATCH] Conditional primary srcset --- .../src/__snapshots__/index.test.jsx.snap | 12 ------------ packages/components/psammead-image/src/index.jsx | 6 +++--- .../Placeholder/__snapshots__/index.test.jsx.snap | 6 ------ .../src/__snapshots__/index.test.jsx.snap | 4 ---- 4 files changed, 3 insertions(+), 25 deletions(-) diff --git a/packages/components/psammead-image/src/__snapshots__/index.test.jsx.snap b/packages/components/psammead-image/src/__snapshots__/index.test.jsx.snap index efb8fc9312..02d4b4e86f 100644 --- a/packages/components/psammead-image/src/__snapshots__/index.test.jsx.snap +++ b/packages/components/psammead-image/src/__snapshots__/index.test.jsx.snap @@ -51,7 +51,6 @@ exports[`Image - imported as '{ Img }' should render image with custom dimension - By Elisa Decker, from her series \\ - Student sitting an exam - Map of the UK displaying Syrian refugees and asylum seekers per 10000 population. Ranges from 0 to 17. - Tracks through the snow - By Elisa Decker, from her series \\ - Student sitting an exam - Map of the UK displaying Syrian refugees and asylum seekers per 10000 population. Ranges from 0 to 17. - Tracks through the snow - By Elisa Decker, from her series \\ - Student sitting an exam - Map of the UK displaying Syrian refugees and asylum seekers per 10000 population. Ranges from 0 to 17. - Tracks through the snow { return ( - + {srcset && } {fallbackSrcset && ( )} @@ -74,8 +74,8 @@ Img.defaultProps = { sizes: null, srcset: null, fallbackSrcset: null, - primaryMimeType: null, - fallbackMimeType: null, + primaryMimeType: 'image/jpeg', + fallbackMimeType: 'image/jpeg', width: null, onLoad: () => {}, }; diff --git a/packages/components/psammead-media-player/src/Placeholder/__snapshots__/index.test.jsx.snap b/packages/components/psammead-media-player/src/Placeholder/__snapshots__/index.test.jsx.snap index 1dbd743101..a3204133f6 100644 --- a/packages/components/psammead-media-player/src/Placeholder/__snapshots__/index.test.jsx.snap +++ b/packages/components/psammead-media-player/src/Placeholder/__snapshots__/index.test.jsx.snap @@ -160,7 +160,6 @@ exports[`Media Player: Placeholder should render a video placeholder 1`] = ` - - - - - - - - - -