Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe('Blocks', () => {
const form = new Form({
id: 'example',
label: 'Example Form',
fields: [],
onSubmit() {},
})
describe('without data', () => {
it('renders nothing into the containing element', () => {
const renderedBlock = render(
)
expect(renderedBlock.container.children).toHaveLength(0)
})
})