mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
b84ac67dac
Closes #69
23 lines
772 B
JavaScript
23 lines
772 B
JavaScript
/**
|
|
* Created by Estevao on 08-06-2015.
|
|
*/
|
|
var showdown = require('../../dist/showdown.js'),
|
|
bootstrap = require('../bootstrap.js'),
|
|
assertion = bootstrap.assertion,
|
|
testsuite = bootstrap.getTestSuite('test/features/');
|
|
|
|
describe('makeHtml() features testsuite', function () {
|
|
'use strict';
|
|
for (var i = 0; i < testsuite.length; ++i) {
|
|
var converter;
|
|
if (testsuite[i].name === '#143.support_image_dimensions') {
|
|
converter = new showdown.Converter({parseImgDimensions: true});
|
|
} else if (testsuite[i].name === '#69.header_level_start') {
|
|
converter = new showdown.Converter({headerLevelStart: 3});
|
|
} else {
|
|
converter = new showdown.Converter();
|
|
}
|
|
it(testsuite[i].name, assertion(testsuite[i], converter));
|
|
}
|
|
});
|