diff --git a/src/html/emit/adf-to-html.test.ts b/src/html/emit/adf-to-html.test.ts index 296a5ab..978cdda 100644 --- a/src/html/emit/adf-to-html.test.ts +++ b/src/html/emit/adf-to-html.test.ts @@ -182,6 +182,7 @@ test('shows a code block in a div carry as pre and code, keeping its line feeds test('shows a block inside a code block in a div carry as a paragraph, and the text after it as code', () => { assert.equal(shown(html(adfToHtml(document({ content: [text('x'), paragraph(text('a\nb')), text('z')], type: 'codeBlock' })))), '
xa
b
z')
+ assert.equal(shown(html(adfToHtml(document({ content: [text('x'), { attrs: { id: 'u' }, content: [paragraph(text('a'))], type: 'mention' }, text('z')], type: 'codeBlock' })))), 'x@ua
z')
})
test('gives a code block in a div carry the class its element takes, and none where its language is no class token', () => {