coreui
Version:
Platform Core UI
17 lines (13 loc) • 436 B
JavaScript
import React from 'react';
import Form from './Form';
import yup from 'yup';
import renderer from 'react-test-renderer';
jest.mock('coreui-deps/lib/react-formal');
const schema = yup.object({})
describe('Form', () => {
it('renders correctly', () => {
const component = renderer.create(<Form defaultValue={schema.default()} schema={schema} />);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
});