Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it(`renders ${size} gutters`, () => {
const { container } = render();
const padding = math(`${DEFAULT_THEME.space[size]} / 2`);
expect(container.firstChild).toHaveStyleRule('padding-right', padding);
expect(container.firstChild).toHaveStyleRule('padding-left', padding);
});
} else {
it(`renders ${size} gutters`, () => {
const { container } = render();
const margin = math(`${DEFAULT_THEME.space[size]} / 2`);
expect(container.firstChild).toHaveStyleRule('margin-right', `-${margin}`);
expect(container.firstChild).toHaveStyleRule('margin-left', `-${margin}`);
});
} else {