From dd7efb5a8a7528372d07c9d65a2123db16379280 Mon Sep 17 00:00:00 2001 From: Estevao Soares dos Santos Date: Thu, 16 Nov 2017 18:34:02 +0000 Subject: [PATCH] test: small test refactoring --- dist/showdown.js | Bin 167987 -> 167987 bytes dist/showdown.min.js | Bin 96570 -> 96570 bytes .../basic.html} | 0 .../basic.md} | 0 test/node/testsuite.features.js | 17 ++++++++++++++--- 5 files changed, 14 insertions(+), 3 deletions(-) rename test/features/{enable-literalMidWordAsterisks.html => literalMidWordAsterisks/basic.html} (100%) rename test/features/{enable-literalMidWordAsterisks.md => literalMidWordAsterisks/basic.md} (100%) diff --git a/dist/showdown.js b/dist/showdown.js index 7a4413a75f87fe464015c2f3a675ff5ed7ac30f0..26fdce86cf046f474f19f5cad977fe548b30e70c 100644 GIT binary patch delta 20 ccmdnIfNS#tt_hNiW{py diff --git a/dist/showdown.min.js b/dist/showdown.min.js index a1f12a9299bb172f52af5da5d9bcfa62e079eaaa..2cfc369c08c0426c032d1d461de242642ceba955 100644 GIT binary patch delta 17 Ycmdn>iFMZ})(H}fW{r|tB^ebf0YoVVMF0Q* delta 17 Ycmdn>iFMZ})(H}fhK-V2B^ebf0Ym`?KmY&$ diff --git a/test/features/enable-literalMidWordAsterisks.html b/test/features/literalMidWordAsterisks/basic.html similarity index 100% rename from test/features/enable-literalMidWordAsterisks.html rename to test/features/literalMidWordAsterisks/basic.html diff --git a/test/features/enable-literalMidWordAsterisks.md b/test/features/literalMidWordAsterisks/basic.md similarity index 100% rename from test/features/enable-literalMidWordAsterisks.md rename to test/features/literalMidWordAsterisks/basic.md diff --git a/test/node/testsuite.features.js b/test/node/testsuite.features.js index 4a4dc5f..5b0a4ac 100644 --- a/test/node/testsuite.features.js +++ b/test/node/testsuite.features.js @@ -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)); + } + }); });