How to use the tinacms.Form function in tinacms

To help you get started, we’ve selected a few tinacms 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 tinacms / tinacms / packages / react-tinacms-blocks / src / blocks.spec.tsx View on Github external
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)
    })
  })