@lyra/block-content-tests
Version:
Tests for shared block content rendering logic
18 lines (17 loc) • 362 B
JavaScript
module.exports = {
input: [
{
_type: 'image',
_key: 'd234a4fa317a',
asset: {
_type: 'reference',
_ref: 'image-YiOKD0O6AdjKPaK24WtbOEv0-3456x2304-jpg'
}
}
],
output: [
'<img alt="Such image" src="',
'https://lyra.api/images/production/YiOKD0O6AdjKPaK24WtbOEv0-3456x2304.jpg',
'"/>'
].join('')
}