regexper-static/src/components/Form/test.js

28 lines
567 B
JavaScript
Raw Normal View History

2018-02-14 02:23:49 +00:00
import React from 'react';
import { shallow } from 'enzyme';
import { Form } from 'components/Form';
2018-02-15 22:35:12 +00:00
import { translate, I18nWrapper } from '__mocks__/i18n';
2018-02-14 02:23:49 +00:00
const syntaxes = {
js: 'Javascript',
pcre: 'PCRE'
};
describe('Form', () => {
test('rendering', () => {
const component = shallow(
<Form t={ translate } syntaxes={ syntaxes }/>
);
expect(component).toMatchSnapshot();
});
test('rendering with download URLs');
test('rendering with permalink URL');
test('submitting form');
test('submitting form with Shift+Enter');
});