mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-18 14:15:44 +01:00
Answer stability round 1: 0 🔴, 1 🟡 (0 misread); drop the duplicate carry assertion from the strike test
This commit is contained in:
@@ -75,9 +75,8 @@ test('writes the marks CommonMark spells, the first mark outermost', () => {
|
||||
assert.equal(html(adfToHtml(document(paragraph(text('Line one'), { type: 'hardBreak' }, text('Line two'))))), '<p>Line one<br>Line two</p>\n')
|
||||
})
|
||||
|
||||
test('writes a strike mark as <del>, a strike mark holding attributes as a carry element', () => {
|
||||
test('writes a strike mark as <del>', () => {
|
||||
assert.equal(html(adfToHtml(document(paragraph(text('old', { type: 'strike' }), text(' new', { type: 'strong' }, { type: 'strike' }))))), '<p><del>old</del><strong><del> new</del></strong></p>\n')
|
||||
assert.match(html(adfToHtml(document(paragraph(text('old', { attrs: { x: 1 }, type: 'strike' }))))), /^<p><span class="adf-carry" data-adf=/)
|
||||
})
|
||||
|
||||
test('escapes text, and keeps tabs, line feeds and form feeds', () => {
|
||||
|
||||
Reference in New Issue
Block a user