showdown/test/node/testsuite.issues.js
Estevao Soares dos Santos 42240ba82c test: add karlcow's testsuite
Also refactor tests to improve maintainability
2015-06-11 01:29:42 +01:00

16 lines
497 B
JavaScript

/**
* Created by Estevao on 08-06-2015.
*/
var showdown = require('../../dist/showdown.js'),
converter = new showdown.Converter(),
bootstrap = require('../bootstrap.js'),
assertion = bootstrap.assertion,
testsuite = bootstrap.getTestSuite('test/issues/');
//MD-Testsuite (borrowed from karlcow/markdown-testsuite)
describe('makeHtml() issues testsuite', function () {
for (var i = 0; i < testsuite.length; ++i) {
it(testsuite[i].name, assertion(testsuite[i], converter));
}
});