const should = require('should'); const configUtils = require('../../utils/configUtils'); const mobiledocLib = require('../../../core/server/lib/mobiledoc'); describe('lib/mobiledoc', function () { beforeEach(function () { configUtils.set('url', 'https://example.com'); }); afterEach(function () { configUtils.restore(); }); describe('mobiledocHtmlRenderer', function () { it('renders all default cards and atoms', function () { let mobiledoc = { version: '0.3.1', atoms: [ ['soft-return', '', {}] ], cards: [ ['markdown', { markdown: '# Markdown card\nSome markdown' }], ['hr', {}], ['image', { cardWidth: 'wide', src: '/content/images/2018/04/NatGeo06.jpg', width: 4000, height: 2000, caption: 'Birdies' }], ['html', { html: '
Some HTML
One
Two
Some markdown
\nThree
Four
Some HTML