mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
test: small test refactoring
This commit is contained in:
parent
5d70b921b1
commit
dd7efb5a8a
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
|
@ -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));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user