From 7e2a1a4a7d1a0a06f6a535f3b877d001b59e3178 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 14 Nov 2026 15:37:03 +0100 Subject: [PATCH] Test an unknown container holding known inline nodes --- src/plain-text/adf-to-plain-text.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plain-text/adf-to-plain-text.test.ts b/src/plain-text/adf-to-plain-text.test.ts index 85faa19..f75d300 100644 --- a/src/plain-text/adf-to-plain-text.test.ts +++ b/src/plain-text/adf-to-plain-text.test.ts @@ -154,6 +154,7 @@ test('writes a node of an unknown type as the text it holds, its children a blan test('writes a node of an unknown type holding text and blocks as blocks, and a mention with nothing to show as nothing', () => { assert.equal(plain(adfToPlainText(document({ content: [text('a'), line('b')], type: 'unknownContainer' }))), 'a\n\nb') assert.equal(plain(adfToPlainText(document(paragraph(text('a'), { type: 'mention' }, text('b'))))), 'ab') + assert.equal(plain(adfToPlainText(document({ content: [text('a'), { attrs: { text: '😄' }, type: 'emoji' }, text('b')], type: 'unknownContainer' }))), 'a😄b') }) test('writes a code block\'s lines and a list item\'s continuation lines under their indent, never a blank line with spaces', () => {