mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-10-24 01:29:28 +02:00
18 lines
352 B
JavaScript
18 lines
352 B
JavaScript
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();
|
|
});
|
|
});
|