diff --git a/packages/components/src/Paragraph.js b/packages/components/src/Paragraph.js index 288dfd911..68f363aee 100644 --- a/packages/components/src/Paragraph.js +++ b/packages/components/src/Paragraph.js @@ -1,17 +1,12 @@ import React from 'react' import Box from './Box' -export const Paragraph = React.forwardRef(function Paragraph( - props, - ref -) { +export const Paragraph = React.forwardRef(function Paragraph(props, ref) { return ( { const json = renderJSON() expect(json).toHaveStyleRule('margin', margin) }) + + test('renders with theme override', () => { + const margin = '8px' + const json = renderJSON( + + + + ) + expect(json).toHaveStyleRule('margin', margin) + }) + + test('renders with theme variant', () => { + const margin = '8px' + const json = renderJSON( + + + + ) + expect(json).toHaveStyleRule('margin', margin) + }) }) describe('Text', () => {