diff --git a/test/features/#143.support_image_dimensions.html b/test/features/#143.support-image-dimensions.html similarity index 100% rename from test/features/#143.support_image_dimensions.html rename to test/features/#143.support-image-dimensions.html diff --git a/test/features/#143.support_image_dimensions.md b/test/features/#143.support-image-dimensions.md similarity index 100% rename from test/features/#143.support_image_dimensions.md rename to test/features/#143.support-image-dimensions.md diff --git a/test/features/#164.1.simple_autolink.html b/test/features/#164.1.simple-autolink.html similarity index 100% rename from test/features/#164.1.simple_autolink.html rename to test/features/#164.1.simple-autolink.html diff --git a/test/features/#164.1.simple_autolink.md b/test/features/#164.1.simple-autolink.md similarity index 100% rename from test/features/#164.1.simple_autolink.md rename to test/features/#164.1.simple-autolink.md diff --git a/test/features/#164.2.disallow_underscore_emphasis_mid_word.html b/test/features/#164.2.disallow-underscore-emphasis-mid-word.html similarity index 100% rename from test/features/#164.2.disallow_underscore_emphasis_mid_word.html rename to test/features/#164.2.disallow-underscore-emphasis-mid-word.html diff --git a/test/features/#164.2.disallow_underscore_emphasis_mid_word.md b/test/features/#164.2.disallow-underscore-emphasis-mid-word.md similarity index 100% rename from test/features/#164.2.disallow_underscore_emphasis_mid_word.md rename to test/features/#164.2.disallow-underscore-emphasis-mid-word.md diff --git a/test/features/#69.header_level_start.html b/test/features/#69.header-level-start.html similarity index 100% rename from test/features/#69.header_level_start.html rename to test/features/#69.header-level-start.html diff --git a/test/features/#69.header_level_start.md b/test/features/#69.header-level-start.md similarity index 100% rename from test/features/#69.header_level_start.md rename to test/features/#69.header-level-start.md diff --git a/test/features/autolink_and_disallow_underscores.html b/test/features/autolink-and-disallow-underscores.html similarity index 100% rename from test/features/autolink_and_disallow_underscores.html rename to test/features/autolink-and-disallow-underscores.html diff --git a/test/features/autolink_and_disallow_underscores.md b/test/features/autolink-and-disallow-underscores.md similarity index 100% rename from test/features/autolink_and_disallow_underscores.md rename to test/features/autolink-and-disallow-underscores.md diff --git a/test/features/disable_gh_codeblocks.html b/test/features/disable-gh-codeblocks.html similarity index 100% rename from test/features/disable_gh_codeblocks.html rename to test/features/disable-gh-codeblocks.html diff --git a/test/features/disable_gh_codeblocks.md b/test/features/disable-gh-codeblocks.md similarity index 100% rename from test/features/disable_gh_codeblocks.md rename to test/features/disable-gh-codeblocks.md diff --git a/test/features/tables/#179.parse_md_in_table_ths.html b/test/features/tables/#179.parse-md-in-table-ths.html similarity index 100% rename from test/features/tables/#179.parse_md_in_table_ths.html rename to test/features/tables/#179.parse-md-in-table-ths.html diff --git a/test/features/tables/#179.parse_md_in_table_ths.md b/test/features/tables/#179.parse-md-in-table-ths.md similarity index 100% rename from test/features/tables/#179.parse_md_in_table_ths.md rename to test/features/tables/#179.parse-md-in-table-ths.md diff --git a/test/features/tables/basic_with_header_ids.html b/test/features/tables/basic-with-header-ids.html similarity index 100% rename from test/features/tables/basic_with_header_ids.html rename to test/features/tables/basic-with-header-ids.html diff --git a/test/features/tables/basic_with_header_ids.md b/test/features/tables/basic-with-header-ids.md similarity index 100% rename from test/features/tables/basic_with_header_ids.md rename to test/features/tables/basic-with-header-ids.md diff --git a/test/issues/#107.inner_underscore_parse_to_block.html b/test/issues/#107.inner-underscore-parse-to-block.html similarity index 100% rename from test/issues/#107.inner_underscore_parse_to_block.html rename to test/issues/#107.inner-underscore-parse-to-block.html diff --git a/test/issues/#107.inner_underscore_parse_to_block.md b/test/issues/#107.inner-underscore-parse-to-block.md similarity index 100% rename from test/issues/#107.inner_underscore_parse_to_block.md rename to test/issues/#107.inner-underscore-parse-to-block.md diff --git a/test/issues/#142.odd_behaviour_for_multiple_consecutive_lists.html b/test/issues/#142.odd-behaviour-for-multiple-consecutive-lists.html similarity index 100% rename from test/issues/#142.odd_behaviour_for_multiple_consecutive_lists.html rename to test/issues/#142.odd-behaviour-for-multiple-consecutive-lists.html diff --git a/test/issues/#142.odd_behaviour_for_multiple_consecutive_lists.md b/test/issues/#142.odd-behaviour-for-multiple-consecutive-lists.md similarity index 100% rename from test/issues/#142.odd_behaviour_for_multiple_consecutive_lists.md rename to test/issues/#142.odd-behaviour-for-multiple-consecutive-lists.md diff --git a/test/issues/#150.hyphens are getting removed.html b/test/issues/#150.hyphens-are-getting-removed.html similarity index 100% rename from test/issues/#150.hyphens are getting removed.html rename to test/issues/#150.hyphens-are-getting-removed.html diff --git a/test/issues/#150.hyphens are getting removed.md b/test/issues/#150.hyphens-are-getting-removed.md similarity index 100% rename from test/issues/#150.hyphens are getting removed.md rename to test/issues/#150.hyphens-are-getting-removed.md diff --git a/test/issues/#183.gh_code_blocks_within_lists_do_not_render_properly.html b/test/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.html similarity index 100% rename from test/issues/#183.gh_code_blocks_within_lists_do_not_render_properly.html rename to test/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.html diff --git a/test/issues/#183.gh_code_blocks_within_lists_do_not_render_properly.md b/test/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.md similarity index 100% rename from test/issues/#183.gh_code_blocks_within_lists_do_not_render_properly.md rename to test/issues/#183.gh-code-blocks-within-lists-do-not-render-properly.md diff --git a/test/issues/#196.entity_in_code_block_in_nested_list.html b/test/issues/#196.entity-in-code-block-in-nested-list.html similarity index 100% rename from test/issues/#196.entity_in_code_block_in_nested_list.html rename to test/issues/#196.entity-in-code-block-in-nested-list.html diff --git a/test/issues/#196.entity_in_code_block_in_nested_list.md b/test/issues/#196.entity-in-code-block-in-nested-list.md similarity index 100% rename from test/issues/#196.entity_in_code_block_in_nested_list.md rename to test/issues/#196.entity-in-code-block-in-nested-list.md diff --git a/test/issues/#83.parsed_text_links_with_underscores.html b/test/issues/#83.parsed-text-links-with-underscores.html similarity index 100% rename from test/issues/#83.parsed_text_links_with_underscores.html rename to test/issues/#83.parsed-text-links-with-underscores.html diff --git a/test/issues/#83.parsed_text_links_with_underscores.md b/test/issues/#83.parsed-text-links-with-underscores.md similarity index 100% rename from test/issues/#83.parsed_text_links_with_underscores.md rename to test/issues/#83.parsed-text-links-with-underscores.md diff --git a/test/issues/#96.Underscores_in_links.html b/test/issues/#96.underscores-in-links.html similarity index 100% rename from test/issues/#96.Underscores_in_links.html rename to test/issues/#96.underscores-in-links.html diff --git a/test/issues/#96.Underscores_in_links.md b/test/issues/#96.underscores-in-links.md similarity index 100% rename from test/issues/#96.Underscores_in_links.md rename to test/issues/#96.underscores-in-links.md diff --git a/test/node/testsuite.features.js b/test/node/testsuite.features.js index 794155cf..341ad01d 100644 --- a/test/node/testsuite.features.js +++ b/test/node/testsuite.features.js @@ -11,39 +11,39 @@ 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') { + if (testsuite[i].name === '#143.support-image-dimensions') { converter = new showdown.Converter({parseImgDimensions: true}); - } else if (testsuite[i].name === '#69.header_level_start') { + } else if (testsuite[i].name === '#69.header-level-start') { converter = new showdown.Converter({headerLevelStart: 3}); - } else if (testsuite[i].name === '#164.1.simple_autolink' || testsuite[i].name === '#204.certain-links-with-at-and-dot-break-url') { + } else if (testsuite[i].name === '#164.1.simple-autolink' || testsuite[i].name === '#204.certain-links-with-at-and-dot-break-url') { converter = new showdown.Converter({simplifiedAutoLink: true}); - } else if (testsuite[i].name === '#164.2.disallow_underscore_emphasis_mid_word') { + } else if (testsuite[i].name === '#164.2.disallow-underscore-emphasis-mid-word') { converter = new showdown.Converter({literalMidWordUnderscores: true}); } else if (testsuite[i].name === '#164.3.strikethrough') { converter = new showdown.Converter({strikethrough: true}); - } else if (testsuite[i].name === 'disable_gh_codeblocks') { + } else if (testsuite[i].name === 'disable-gh-codeblocks') { converter = new showdown.Converter({ghCodeBlocks: false}); } else if (testsuite[i].name === '#164.4.tasklists') { converter = new showdown.Converter({tasklists: true}); - } else if (testsuite[i].name === 'autolink_and_disallow_underscores') { + } else if (testsuite[i].name === 'autolink-and-disallow-underscores') { converter = new showdown.Converter({literalMidWordUnderscores: true, simplifiedAutoLink: true}); } else { converter = new showdown.Converter(); } - it(testsuite[i].name, assertion(testsuite[i], converter)); + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); } describe('table support', function () { var converter; for (var i = 0; i < tableSuite.length; ++i) { - if (tableSuite[i].name === 'basic_with_header_ids') { + if (tableSuite[i].name === 'basic-with-header-ids') { converter = new showdown.Converter({tables: true, tableHeaderId: true}); - } else if (tableSuite[i].name === '#179.parse_md_in_table_ths') { + } else if (tableSuite[i].name === '#179.parse-md-in-table-ths') { converter = new showdown.Converter({tables: true, strikethrough: true}); } else { converter = new showdown.Converter({tables: true}); } - it(tableSuite[i].name, assertion(tableSuite[i], converter)); + it(tableSuite[i].name.replace(/-/g, ' '), assertion(tableSuite[i], converter)); } }); diff --git a/test/node/testsuite.ghost.js b/test/node/testsuite.ghost.js index d720ef6c..298cf4e8 100644 --- a/test/node/testsuite.ghost.js +++ b/test/node/testsuite.ghost.js @@ -17,6 +17,6 @@ var bootstrap = require('../bootstrap.js'), describe('makeHtml() ghost testsuite', function () { 'use strict'; for (var i = 0; i < testsuite.length; ++i) { - it(testsuite[i].name, assertion(testsuite[i], converter)); + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); } }); diff --git a/test/node/testsuite.issues.js b/test/node/testsuite.issues.js index e2563db4..8580a3e7 100644 --- a/test/node/testsuite.issues.js +++ b/test/node/testsuite.issues.js @@ -9,6 +9,6 @@ var bootstrap = require('../bootstrap.js'), describe('makeHtml() issues testsuite', function () { 'use strict'; for (var i = 0; i < testsuite.length; ++i) { - it(testsuite[i].name, assertion(testsuite[i], converter)); + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); } }); diff --git a/test/node/testsuite.karlcow.js b/test/node/testsuite.karlcow.js index 2261dc24..072c41f6 100644 --- a/test/node/testsuite.karlcow.js +++ b/test/node/testsuite.karlcow.js @@ -7,6 +7,6 @@ var bootstrap = require('../bootstrap.js'), describe('makeHtml() karlcow testsuite', function () { 'use strict'; for (var i = 0; i < testsuite.length; ++i) { - it(testsuite[i].name, assertion(testsuite[i], converter)); + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); } }); diff --git a/test/node/testsuite.standard.js b/test/node/testsuite.standard.js index 62c21c89..1746998a 100644 --- a/test/node/testsuite.standard.js +++ b/test/node/testsuite.standard.js @@ -6,6 +6,6 @@ var bootstrap = require('../bootstrap.js'), describe('makeHtml() standard testsuite', function () { 'use strict'; for (var i = 0; i < testsuite.length; ++i) { - it(testsuite[i].name, assertion(testsuite[i], converter)); + it(testsuite[i].name.replace(/-/g, ' '), assertion(testsuite[i], converter)); } });