From 3a18627389d4d2f7fd03fa31fd77acad81b85532 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 25 Sep 2026 19:36:59 +0200 Subject: [PATCH] 10a - tests: a value blank once cleaned leaves the note or fallback --- src/markdown/emit/plain-reduction.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/markdown/emit/plain-reduction.test.ts b/src/markdown/emit/plain-reduction.test.ts index 7ee1a07..34f70a2 100644 --- a/src/markdown/emit/plain-reduction.test.ts +++ b/src/markdown/emit/plain-reduction.test.ts @@ -216,6 +216,8 @@ test('spells an extension as its text attribute, else a note naming it, and a pl assert.equal(plain(node('syncBlock', { resourceId: 'r' })), '_(synced block not included)_\n') assert.equal(plain(node('extension', { extensionKey: 'jira\r\nissues\u0000' })), '_(jira issues not included)_\n') assert.equal(plain(node('extension', { extensionKey: '\r\u0000' }), node('extension', { extensionKey: '\n' })), '_(extension not included)_\n\n_(extension not included)_\n') + const blank = paragraph(node('inlineExtension', { extensionKey: 'k', text: '\r' }), text(' '), node('mediaInline', { alt: '\u0000', type: 'file' }), text(' '), node('mention', { id: '5b10a2', text: '\r' })) + assert.equal(plain(blank), '_(k not included)_ _(image not included)_ @5b10a2\n') assert.equal(plain(paragraph(text('a '), node('inlineExtension', { text: 'macro' }), text(' '), node('inlineExtension', {}), node('placeholder', { text: 'Type here' }))), 'a macro _(extension not included)_\n') })