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 a span with display: block if specified', () => {
let text = doShallowStyled()
expect(text).not.toHaveStyleRule('display', typography.blockText.display)
text = doShallowStyled({ block: true })
expect(text).toHaveStyleRule('display', typography.blockText.display)
})
it('renders a span with display: block if specified', () => {
let text = doShallowStyled()
expect(text).not.toHaveStyleRule('display', typography.blockText.display)
text = doShallowStyled({ block: true })
expect(text).toHaveStyleRule('display', typography.blockText.display)
})
const textBlock = ({ block }) => (block ? typography.blockText : undefined)