UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

23 lines 875 B
// VENDOR import * as React from 'react'; import * as renderer from 'react-test-renderer'; import { shallow, mount } from 'enzyme'; import { ThemeProvider } from '@xstyled/styled-components'; // ANCHOR import { CardActionArea } from './CardActionArea.component'; import { RootTheme } from '../../theme'; // TEST SETUP const subject = (React.createElement(ThemeProvider, { theme: RootTheme }, React.createElement(CardActionArea, null))); const wrapper = mount(subject); const component = shallow(subject); describe('Component: CardActionArea', () => { it('should be defined', () => { expect(subject).toBeDefined(); expect(wrapper).toBeDefined(); expect(component).toBeDefined(); const tree = renderer.create(subject).toJSON(); expect(tree).toMatchSnapshot(); }); }); //# sourceMappingURL=CardActionArea.component.spec.js.map