testsuite.karlcow.js 480 B

123456789101112
  1. var showdown = require('../../dist/showdown.js'),
  2. converter = new showdown.Converter({noHeaderId: true}),
  3. bootstrap = require('../bootstrap.js'),
  4. assertion = bootstrap.assertion,
  5. testsuite = bootstrap.getTestSuite('test/karlcow/');
  6. //MD-Testsuite (borrowed from karlcow/markdown-testsuite)
  7. describe('makeHtml() karlcow testsuite', function () {
  8. for (var i = 0; i < testsuite.length; ++i) {
  9. it(testsuite[i].name, assertion(testsuite[i], converter));
  10. }
  11. });