rickvanlieshout.com/src/components/Sidebar/Contacts/Contacts.test.js
2018-11-09 20:08:48 +03:00

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