Pin the link mark's two error codes, and correct what the unspellable corpus holds
CI / gate (push) Successful in 5s
CI / gate (push) Successful in 5s
This commit is contained in:
@@ -90,6 +90,8 @@ test('refuses a link attribute no markdown spelling holds', () => {
|
||||
code(adfToMarkdown(document(paragraph({ marks: [{ attrs: { href: 'https://example.com/', id: 'x' }, type: 'link' }], text: 't', type: 'text' })))),
|
||||
'unspellable-mark',
|
||||
)
|
||||
assert.equal(code(adfToMarkdown(document(paragraph({ marks: [{ attrs: { href: 4 }, type: 'link' }], text: 't', type: 'text' })))), 'unspellable-mark')
|
||||
assert.equal(code(adfToMarkdown(document(paragraph({ marks: [{ type: 'link' }], text: 't', type: 'text' })))), 'unsupported-node-shape')
|
||||
})
|
||||
|
||||
test('refuses a mark the canonical spellings cannot nest', () => {
|
||||
|
||||
Reference in New Issue
Block a user