Fixed missing export of card-markdown card and broken tests

no issue
- fixes rendering bug introduced in 0833b28557
- updates test generators/fixtures to use new card names
This commit is contained in:
Kevin Ansfield 2018-02-01 16:26:56 +01:00
parent 05bcf7ee6a
commit fb973dbbf2
3 changed files with 7 additions and 7 deletions

View File

@ -4,4 +4,4 @@
// our markdown-only editor was using the `card-markdown` card name
const markdownCard = require('./markdown');
module.exports = Object.assign(markdownCard, {name: 'card-markdown'});
module.exports = Object.assign({}, markdownCard, {name: 'card-markdown'});

View File

@ -6,16 +6,16 @@ describe('Convert mobiledoc to HTML ', function () {
version: '0.3.1',
atoms: [],
cards: [
['card-markdown',
['markdown',
{
pos: 'top',
card_name: 'card-markdown',
card_name: 'markdown',
markdown: '#heading\n\n- list one\n- list two\n- list three'
}
],
['card-html', {
['html', {
pos: 'top',
card_name: 'card-html',
card_name: 'html',
html: '<p>HTML CARD</p>'
}]
],

View File

@ -11,8 +11,8 @@ DataGenerator.markdownToMobiledoc = function markdownToMobiledoc(content) {
markups: [],
atoms: [],
cards: [
['card-markdown', {
cardName: 'card-markdown',
['markdown', {
cardName: 'markdown',
markdown: content || ''
}]
],