How to use the uniforms-material.wrapField function in uniforms-material

To help you get started, we’ve selected a few uniforms-material examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vazco / uniforms / packages / uniforms-material / __tests__ / wrapField.tsx View on Github external
test(' - renders wrapper with error', () => {
  const element = wrapField(
    {
      showInlineError: true,
      error: new Error(),
      errorMessage: 'Error message',
    },
    <div>,
  );
  const wrapper = mount(element);

  expect(wrapper.find(FormControl).prop('error')).toBe(true);
  expect(wrapper.find(FormHelperText).text()).toBe('Error message');
});
</div>

uniforms-material

Material-UI components for uniforms.

MIT
Latest version published 1 year ago

Package Health Score

52 / 100
Full package analysis

Popular uniforms-material functions