diff --git a/packages/block-tools/test/html-to-blocks/list.test.ts b/packages/block-tools/test/html-to-blocks/list.test.ts new file mode 100644 index 000000000..796860b9a --- /dev/null +++ b/packages/block-tools/test/html-to-blocks/list.test.ts @@ -0,0 +1,53 @@ +import {JSDOM} from 'jsdom' +import {describe, expect, test} from 'vitest' +import {htmlToBlocks} from '../../src' +import defaultSchema from '../fixtures/defaultSchema' +import {createTestKeyGenerator} from '../test-key-generator' + +const blockContentType = defaultSchema + .get('blogPost') + .fields.find((field: any) => field.name === 'body').type + +describe(htmlToBlocks.name, () => { + test('list items without parent', () => { + expect( + htmlToBlocks(`