import * as React from 'react'; import { render } from 'enzyme'; import Ghost from '../Ghost'; describe('components/Ghost', () => { test('renders element with default options', () => { const html = render(); expect(html).toMatchInlineSnapshot(` `); }); test('isAnimated prop controls modifier class that applies animation effect', () => { const html = render(); expect(html).toMatchInlineSnapshot(` `); }); test.each` label | borderRadius | height | width | style ${'no style prop'} | ${'2px'} | ${100} | ${100} | ${undefined} ${'a partial style object'} | ${'2px'} | ${100} | ${100} | ${{ height: 20 }} ${'a style object with all options'} | ${'2px'} | ${100} | ${100} | ${{ borderRadius: '100%', height: 20, width: 10 }} ${'partial options and styles'} | ${undefined} | ${100} | ${100} | ${{ height: 20, width: 10 }} `( 'merges style prop on top of inline styling options when there is $label', ({ borderRadius, height, width, style }) => { expect( render(), ).toMatchSnapshot(); }, ); });