fix: repair malformed nested editor blocks

This commit is contained in:
lucaronin
2026-05-27 18:32:18 +02:00
parent af83d270fd
commit 908994c253
5 changed files with 151 additions and 75 deletions

View File

@@ -500,11 +500,12 @@ describe('SingleEditorView', () => {
expect(editor.replaceBlocks.mock.calls[0][1]).toEqual([
expect.objectContaining({
id: expect.any(String),
children: [
expect.objectContaining({
id: expect.any(String),
}),
],
children: [],
}),
expect.objectContaining({
id: expect.any(String),
content: [{ type: 'text', text: 'Recovered child', styles: {} }],
children: [],
}),
])
} finally {