rickvanlieshout.com/src/components/Sidebar/Contacts/Contacts.test.js
2020-07-08 22:37:52 +03:00

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();
});
});