rickvanlieshout.com/src/components/Icon/Icon.test.js
2019-07-31 22:05:23 -04:00

20 lines
386 B
JavaScript

// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Icon from './Icon';
describe('Icon', () => {
const props = {
name: 'test',
icon: {
viewBox: '0 0 0 0',
path: '',
}
};
it('renders correctly', () => {
const tree = renderer.create(<Icon {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});
});