rickvanlieshout.com/src/components/Icon/Icon.test.js

18 lines
352 B
JavaScript
Raw Normal View History

2018-11-09 18:08:48 +01:00
import React from 'react';
import renderer from 'react-test-renderer';
import Icon from './Icon';
describe('Icon', () => {
const props = {
icon: {
viewBox: '0 0 0 0',
path: '',
}
};
it('renders correctly', () => {
const tree = renderer.create(<Icon {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});
});