mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
24 lines
692 B
JavaScript
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));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|