Skip to content

Commit

Permalink
chore: normalize test names
Browse files Browse the repository at this point in the history
  • Loading branch information
tivie committed Oct 19, 2015
1 parent a0da0a6 commit 5b1f716
Show file tree
Hide file tree
Showing 35 changed files with 14 additions and 14 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 10 additions & 10 deletions test/node/testsuite.features.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});

Expand Down
2 changes: 1 addition & 1 deletion test/node/testsuite.ghost.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});
2 changes: 1 addition & 1 deletion test/node/testsuite.issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});
2 changes: 1 addition & 1 deletion test/node/testsuite.karlcow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});
2 changes: 1 addition & 1 deletion test/node/testsuite.standard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});

0 comments on commit 5b1f716

Please sign in to comment.