showdown/test/functional/makehtml/testsuite.ghost.js

23 lines
789 B
JavaScript
Raw Permalink Normal View History

2015-07-15 03:53:28 +08:00
/**
* Created by Estevao on 14-07-2015.
*/
2017-12-22 23:28:41 +08:00
var bootstrap = require('./makehtml.bootstrap.js'),
converter = new bootstrap.showdown.Converter({
strikethrough: true,
literalMidWordUnderscores: true,
simplifiedAutoLink: true,
tables: true,
parseImgDimensions: true, //extra
tasklists: true //extra
}),
assertion = bootstrap.assertion,
2017-12-23 20:35:31 +08:00
testsuite = bootstrap.getTestSuite('test/functional/makehtml/cases/ghost/');
2015-07-15 03:53:28 +08:00
//MD-Testsuite (borrowed from karlcow/markdown-testsuite)
describe('makeHtml() ghost testsuite', function () {
'use strict';
for (var i = 0; i < testsuite.length; ++i) {
2015-10-19 09:50:32 +08:00
it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter));
2015-07-15 03:53:28 +08:00
}
});