docbrown/app/javascript/article-form/elements/__tests__/description.test.jsx
2020-05-11 14:42:55 -04:00

17 lines
416 B
JavaScript

import { h } from 'preact';
import render from 'preact-render-to-json';
import Description from '../description';
describe('<Description />', () => {
it('should render the description', () => {
const context = render(
<Description
defaultValue="Some description"
onChange={() => {
return 'onChange';
}}
/>,
);
expect(context).toMatchSnapshot();
});
});