mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-30 23:33:15 +01:00
23 lines
461 B
JavaScript
23 lines
461 B
JavaScript
// @flow strict
|
|
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();
|
|
});
|
|
});
|