@retailmenot/anchor
Version:
A React UI Library by RetailMeNot
22 lines • 850 B
JavaScript
// VENDOR
import * as React from 'react';
import * as renderer from 'react-test-renderer';
import { ThemeProvider } from '@xstyled/styled-components';
import { shallow, mount } from 'enzyme';
// ANCHOR
import { RootTheme } from '../../theme';
import { Goto } from './';
describe('Component: Goto', () => {
it('should be defined.', () => {
const subject = (React.createElement(ThemeProvider, { theme: RootTheme },
React.createElement(Goto, { onSubmit: () => null })));
const wrapper = mount(subject);
const component = shallow(subject);
expect(subject).toBeDefined();
expect(wrapper).toBeDefined();
expect(component).toBeDefined();
const tree = renderer.create(subject).toJSON();
expect(tree).toMatchSnapshot();
});
});
//# sourceMappingURL=Goto.component.spec.js.map