mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
3a616c5bf6
Related to #910
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
/**
|
|
* Created by Estevao on 08-06-2015.
|
|
*/
|
|
var bootstrap = require('./makemarkdown.bootstrap.js'),
|
|
showdown = bootstrap.showdown,
|
|
assertion = bootstrap.assertion,
|
|
issues = bootstrap.getTestSuite('test/functional/makemarkdown/cases/features/issues/'),
|
|
ghMentions = bootstrap.getTestSuite('test/functional/makemarkdown/cases/features/ghMentions/');
|
|
|
|
describe('makeMarkdown() features testsuite', function () {
|
|
'use strict';
|
|
|
|
describe('issues', function () {
|
|
for (var i = 0; i < issues.length; ++i) {
|
|
var converter;
|
|
if (issues[i].name === '#164.4.tasklists') {
|
|
converter = new showdown.Converter({tasklists: true});
|
|
} else {
|
|
converter = new showdown.Converter();
|
|
}
|
|
it(issues[i].name.replace(/-/g, ' '), assertion(issues[i], converter));
|
|
}
|
|
});
|
|
|
|
describe('ghMentions', function () {
|
|
var converter = new showdown.Converter({ ghMentions: true });
|
|
for (var i = 0; i < ghMentions.length; ++i) {
|
|
it(ghMentions[i].name.replace(/-/g, ' '), assertion(ghMentions[i], converter));
|
|
}
|
|
});
|
|
});
|