3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 07:32:58 +01:00

Test the id marker cases the mutation run left unchecked

This commit is contained in:
2026-11-19 17:25:01 +01:00
committed by Lillem4n
parent 5c77d18a13
commit 57af3c17f2
2 changed files with 29 additions and 1 deletions
+2
View File
@@ -47,6 +47,8 @@ test('refuses a node whose carry nests too deep ahead of a later node in its lin
const refused = adfToLosslessMarkdown(document(paragraph({ attrs: { id }, type: 'mention' }, twiceStrong)))
assert.equal(code(refused), 'unsupported-nesting-depth')
assert.deepEqual(path(refused), ['content', 0, 'content', 0])
const listed = adfToLosslessMarkdown(document({ content: [{ content: [paragraph({ attrs: { id }, type: 'mention' })], type: 'listItem' }], type: 'bulletList' }))
assert.deepEqual(path(listed), ['content', 0, 'content', 0, 'content', 0, 'content', 0])
})
test('refuses a carried run at the node whose carry nests too deep, among the run\'s own nodes', () => {