@lyra/block-content-tests
Version:
Tests for shared block content rendering logic
30 lines (29 loc) • 571 B
JavaScript
module.exports = {
input: {
_key: 'R5FvMrjo',
_type: 'block',
children: [
{
_key: 'cZUQGmh4',
_type: 'span',
marks: ['strong'],
text: 'A word of'
},
{
_key: 'toaiCqIK',
_type: 'span',
marks: ['strong'],
text: ' warning;'
},
{
_key: 'gaZingA',
_type: 'span',
marks: [],
text: ' Lyra is addictive.'
}
],
markDefs: [],
style: 'normal'
},
output: '<p><strong>A word of warning;</strong> Lyra is addictive.</p>'
}