@retailmenot/anchor
Version:
A React UI Library by RetailMeNot
22 lines • 990 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 '../../../src/theme';
import { PositionContainer } from './PositionContainer.component';
describe('Component: PositionContainer', () => {
it('should be defined.', () => {
const subject = (React.createElement(ThemeProvider, { theme: RootTheme },
React.createElement(PositionContainer, { width: 100, height: 50, containerHeight: 120, containerWidth: 70, position: "bottom" })));
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=PositionContainer.spec.js.map