mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-31 07:42:42 +01:00
22 lines
445 B
JavaScript
22 lines
445 B
JavaScript
|
import React from 'react';
|
||
|
import renderer from 'react-test-renderer';
|
||
|
import Contacts from './Contacts';
|
||
|
|
||
|
describe('Contacts', () => {
|
||
|
const props = {
|
||
|
contacts: {
|
||
|
email: '#',
|
||
|
twitter: '#',
|
||
|
vkontakte: '#',
|
||
|
github: '#',
|
||
|
rss: '#',
|
||
|
telegram: '#'
|
||
|
}
|
||
|
};
|
||
|
|
||
|
it('renders correctly', () => {
|
||
|
const tree = renderer.create(<Contacts {...props} />).toJSON();
|
||
|
expect(tree).toMatchSnapshot();
|
||
|
});
|
||
|
});
|