soupette 24630ebd02 Remove snapshots
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-03 16:51:35 +01:00

43 lines
1.1 KiB
JavaScript

import React from 'react';
// import renderer from 'react-test-renderer';
import { shallow } from 'enzyme';
// import { IntlProvider } from 'react-intl';
// import translationMessages from '../../../translations/en.json';
import Inputs from '../index';
// const renderWithIntl = (Compo, props) => {
// return renderer.create(
// <IntlProvider locale="en" messages={translationMessages}>
// <Compo {...props} />
// </IntlProvider>
// );
// };
describe('<Inputs />', () => {
const props = {
name: 'events',
value: ['media.create, media.delete'],
onChange: jest.fn(),
type: 'events',
};
it('should not crash', () => {
shallow(<Inputs {...props} />);
});
// FIXME: snapshots
// it('should match the snapshot if type is events', () => {
// const tree = renderWithIntl(Inputs, props);
// expect(tree).toMatchSnapshot();
// });
// it('should match the snapshot if type is headers', () => {
// const tree = renderWithIntl(Inputs, { ...props, type: 'headers' });
// expect(tree).toMatchSnapshot();
// });
});