From 5b1f716151b5f5032d18a9d69203d24569997038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Soares=20dos=20Santos?= Date: Mon, 19 Oct 2015 02:50:32 +0100 Subject: [PATCH] chore: normalize test names --- ...tml => #143.support-image-dimensions.html} | 0 ...ns.md => #143.support-image-dimensions.md} | 0 ...olink.html => #164.1.simple-autolink.html} | 0 ..._autolink.md => #164.1.simple-autolink.md} | 0 ...isallow-underscore-emphasis-mid-word.html} | 0 ....disallow-underscore-emphasis-mid-word.md} | 0 ...start.html => #69.header-level-start.html} | 0 ...vel_start.md => #69.header-level-start.md} | 0 ...=> autolink-and-disallow-underscores.html} | 0 ...d => autolink-and-disallow-underscores.md} | 0 ...blocks.html => disable-gh-codeblocks.html} | 0 ...codeblocks.md => disable-gh-codeblocks.md} | 0 ...s.html => #179.parse-md-in-table-ths.html} | 0 ...e_ths.md => #179.parse-md-in-table-ths.md} | 0 ...er_ids.html => basic-with-header-ids.html} | 0 ...header_ids.md => basic-with-header-ids.md} | 0 ...#107.inner-underscore-parse-to-block.html} | 0 ...> #107.inner-underscore-parse-to-block.md} | 0 ...viour-for-multiple-consecutive-lists.html} | 0 ...haviour-for-multiple-consecutive-lists.md} | 0 ... => #150.hyphens-are-getting-removed.html} | 0 ...md => #150.hyphens-are-getting-removed.md} | 0 ...-within-lists-do-not-render-properly.html} | 0 ...ks-within-lists-do-not-render-properly.md} | 0 ....entity-in-code-block-in-nested-list.html} | 0 ...96.entity-in-code-block-in-nested-list.md} | 0 ...3.parsed-text-links-with-underscores.html} | 0 ...#83.parsed-text-links-with-underscores.md} | 0 ...nks.html => #96.underscores-in-links.html} | 0 ...n_links.md => #96.underscores-in-links.md} | 0 test/node/testsuite.features.js | 20 +++++++++---------- test/node/testsuite.ghost.js | 2 +- test/node/testsuite.issues.js | 2 +- test/node/testsuite.karlcow.js | 2 +- test/node/testsuite.standard.js | 2 +- 35 files changed, 14 insertions(+), 14 deletions(-) rename test/features/{#143.support_image_dimensions.html => #143.support-image-dimensions.html} (100%) rename test/features/{#143.support_image_dimensions.md => #143.support-image-dimensions.md} (100%) rename test/features/{#164.1.simple_autolink.html => #164.1.simple-autolink.html} (100%) rename test/features/{#164.1.simple_autolink.md => #164.1.simple-autolink.md} (100%) rename test/features/{#164.2.disallow_underscore_emphasis_mid_word.html => #164.2.disallow-underscore-emphasis-mid-word.html} (100%) rename test/features/{#164.2.disallow_underscore_emphasis_mid_word.md => #164.2.disallow-underscore-emphasis-mid-word.md} (100%) rename test/features/{#69.header_level_start.html => #69.header-level-start.html} (100%) rename test/features/{#69.header_level_start.md => #69.header-level-start.md} (100%) rename test/features/{autolink_and_disallow_underscores.html => autolink-and-disallow-underscores.html} (100%) rename test/features/{autolink_and_disallow_underscores.md => autolink-and-disallow-underscores.md} (100%) rename test/features/{disable_gh_codeblocks.html => disable-gh-codeblocks.html} (100%) rename test/features/{disable_gh_codeblocks.md => disable-gh-codeblocks.md} (100%) rename test/features/tables/{#179.parse_md_in_table_ths.html => #179.parse-md-in-table-ths.html} (100%) rename test/features/tables/{#179.parse_md_in_table_ths.md => #179.parse-md-in-table-ths.md} (100%) rename test/features/tables/{basic_with_header_ids.html => basic-with-header-ids.html} (100%) rename test/features/tables/{basic_with_header_ids.md => basic-with-header-ids.md} (100%) rename test/issues/{#107.inner_underscore_parse_to_block.html => #107.inner-underscore-parse-to-block.html} (100%) rename test/issues/{#107.inner_underscore_parse_to_block.md => #107.inner-underscore-parse-to-block.md} (100%) rename test/issues/{#142.odd_behaviour_for_multiple_consecutive_lists.html => #142.odd-behaviour-for-multiple-consecutive-lists.html} (100%) rename test/issues/{#142.odd_behaviour_for_multiple_consecutive_lists.md => #142.odd-behaviour-for-multiple-consecutive-lists.md} (100%) rename test/issues/{#150.hyphens are getting removed.html => #150.hyphens-are-getting-removed.html} (100%) rename test/issues/{#150.hyphens are getting removed.md => #150.hyphens-are-getting-removed.md} (100%) rename test/issues/{#183.gh_code_blocks_within_lists_do_not_render_properly.html => #183.gh-code-blocks-within-lists-do-not-render-properly.html} (100%) rename test/issues/{#183.gh_code_blocks_within_lists_do_not_render_properly.md => #183.gh-code-blocks-within-lists-do-not-render-properly.md} (100%) rename test/issues/{#196.entity_in_code_block_in_nested_list.html => #196.entity-in-code-block-in-nested-list.html} (100%) rename test/issues/{#196.entity_in_code_block_in_nested_list.md => #196.entity-in-code-block-in-nested-list.md} (100%) rename test/issues/{#83.parsed_text_links_with_underscores.html => #83.parsed-text-links-with-underscores.html} (100%) rename test/issues/{#83.parsed_text_links_with_underscores.md => #83.parsed-text-links-with-underscores.md} (100%) rename test/issues/{#96.Underscores_in_links.html => #96.underscores-in-links.html} (100%) rename test/issues/{#96.Underscores_in_links.md => #96.underscores-in-links.md} (100%) 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)); } });