2020-01-22 17:47:09 +01:00
|
|
|
import React from 'react';
|
|
|
|
|
import renderer from 'react-test-renderer';
|
|
|
|
|
|
|
|
|
|
import EventRow from '../EventRow';
|
|
|
|
|
|
|
|
|
|
describe('<EventRow />', () => {
|
|
|
|
|
const props = {
|
|
|
|
|
name: 'events',
|
|
|
|
|
};
|
2020-01-29 17:44:51 +01:00
|
|
|
|
2020-01-29 19:27:26 +01:00
|
|
|
it('should match the snapshot', () => {
|
2020-01-22 17:47:09 +01:00
|
|
|
const tree = renderer.create(<EventRow {...props} />).toJSON();
|
2020-01-29 17:44:51 +01:00
|
|
|
|
2020-01-22 17:47:09 +01:00
|
|
|
expect(tree).toMatchSnapshot();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should have default handleChange', () => {
|
|
|
|
|
expect(EventRow.defaultProps.handleChange).toBeDefined();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should have default handleChangeAll', () => {
|
|
|
|
|
expect(EventRow.defaultProps.handleChangeAll).toBeDefined();
|
|
|
|
|
});
|
|
|
|
|
});
|