Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test(' - renders error block (showInlineError=false)', () => {
const error = new Error();
const element = wrapField(
{ error, showInlineError: false, errorMessage: 'Error' },
<div>,
);
const wrapper = mount(element);
expect(wrapper.find('.text-danger')).toHaveLength(0);
});
</div>