showdown/test/functional/makehtml/extra.testsuite.commonmark.js
2022-04-27 21:45:10 +01:00

24 lines
692 B
JavaScript

/**
* Created by Estevao on 08-06-2015.
*/
// jshint ignore: start
var bootstrap = require('./makehtml.bootstrap.js'),
converter = new bootstrap.showdown.Converter(),
assertion = bootstrap.assertion,
testsuite = bootstrap.getJsonTestSuite('test/functional/makehtml/cases/commonmark.testsuite.json');
describe('makeHtml() commonmark testsuite', function () {
'use strict';
for (var section in testsuite) {
if (testsuite.hasOwnProperty(section)) {
describe(section, function () {
for (var i = 0; i < testsuite[section].length; ++i) {
it(testsuite[section][i].name, assertion(testsuite[section][i], converter));
}
});
}
}
});