@buffetjs/styles
Version:
Buffetjs Styles - The styling solution of Buffetjs
17 lines (13 loc) • 377 B
JavaScript
import React from 'react';
import renderer from 'react-test-renderer';
import { shallow } from 'enzyme';
import Option from '../index';
describe('<Option />', () => {
it('should not crash', () => {
shallow(<Option />);
});
it('should match the snapshot', () => {
const tree = renderer.create(<Option />).toJSON();
expect(tree).toMatchSnapshot();
});
});