test: small test refactoring

This commit is contained in:
Estevao Soares dos Santos 2017-11-16 18:34:02 +00:00
parent 5d70b921b1
commit dd7efb5a8a
5 changed files with 14 additions and 3 deletions

BIN
dist/showdown.js vendored

Binary file not shown.

BIN
dist/showdown.min.js vendored

Binary file not shown.

View File

@ -12,7 +12,8 @@ var bootstrap = require('../bootstrap.js'),
rawHeaderIdSuite = bootstrap.getTestSuite('test/features/rawHeaderId/'),
rawPrefixHeaderIdSuite = bootstrap.getTestSuite('test/features/rawPrefixHeaderId/'),
emojisSuite = bootstrap.getTestSuite('test/features/emojis/'),
underlineSuite = bootstrap.getTestSuite('test/features/underline/');
underlineSuite = bootstrap.getTestSuite('test/features/underline/'),
literalMidWordAsterisksSuite = bootstrap.getTestSuite('test/features/literalMidWordAsterisks/');
describe('makeHtml() features testsuite', function () {
'use strict';
@ -196,8 +197,8 @@ describe('makeHtml() features testsuite', function () {
}
});
/** test emojis support **/
describe('emojis support', function () {
/** test underline support **/
describe('underline support', function () {
var converter,
suite = underlineSuite;
for (var i = 0; i < suite.length; ++i) {
@ -209,4 +210,14 @@ describe('makeHtml() features testsuite', function () {
it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter));
}
});
/** test literalMidWordAsterisks option **/
describe('literalMidWordAsterisks option', function () {
var converter,
suite = literalMidWordAsterisksSuite;
for (var i = 0; i < suite.length; ++i) {
converter = new showdown.Converter({literalMidWordAsterisks: true});
it(suite[i].name.replace(/-/g, ' '), assertion(suite[i], converter));
}
});
});