Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
width={square.width}
{...additionalProps}
/>,
);
shouldMatchSnapshot(
'should render image with custom dimensions correctly',
,
);
shouldMatchSnapshot(
'should render image with srcset correctly',
,
);
};
width={landscape.width}
{...additionalProps}
/>,
);
shouldMatchSnapshot(
'should render portrait image correctly',
,
);
shouldMatchSnapshot(
'should render square image correctly',
,
);
shouldMatchSnapshot(
'should render image with custom dimensions correctly',
const snapshotTests = (Component, additionalProps) => {
shouldMatchSnapshot(
'should render landscape image correctly',
,
);
shouldMatchSnapshot(
'should render portrait image correctly',
,
);
shouldMatchSnapshot(
'should render square image correctly',
width={portrait.width}
{...additionalProps}
/>,
);
shouldMatchSnapshot(
'should render square image correctly',
,
);
shouldMatchSnapshot(
'should render image with custom dimensions correctly',
,
);
shouldMatchSnapshot(
'should render image with srcset correctly',
const snapshotTests = (Component, additionalProps) => {
shouldMatchSnapshot(
'should render landscape image correctly',
,
);
shouldMatchSnapshot(
'should render portrait image correctly',