more descriptive test helper method names
This commit is contained in:
parent
8a1ea82e97
commit
ec3a3cbbc9
@ -3,4 +3,4 @@
|
||||
var helper = require("../test/_helper");
|
||||
var util = require("../lib/6to5/util");
|
||||
|
||||
console.log("(" + helper.run + ")(" + JSON.stringify(helper.getTests()) + ", to5, proclaim)");
|
||||
console.log("(" + helper.runTransformationTests + ")(" + JSON.stringify(helper.getTransformationTests()) + ", to5, proclaim)");
|
||||
|
||||
@ -15,7 +15,7 @@ var readFile = function (filename) {
|
||||
}
|
||||
};
|
||||
|
||||
exports.run = function (suites, transform, assert) {
|
||||
exports.runTransformationTests = function (suites, transform, assert) {
|
||||
_.each(suites, function (testSuite) {
|
||||
suite("transformation/" + testSuite.title, function () {
|
||||
_.each(testSuite.tests, function (task) {
|
||||
@ -40,7 +40,7 @@ exports.run = function (suites, transform, assert) {
|
||||
});
|
||||
};
|
||||
|
||||
exports.getTests = function () {
|
||||
exports.getTransformationTests = function () {
|
||||
var suites = [];
|
||||
|
||||
_.each(fs.readdirSync(fixturesDir), function (suiteName) {
|
||||
|
||||
@ -2,4 +2,4 @@ var transform = require("../lib/6to5/transform");
|
||||
var helper = require("./_helper");
|
||||
var assert = require("assert");
|
||||
|
||||
helper.run(helper.getTests(), transform, assert);
|
||||
helper.runTransformationTests(helper.getTransformationTests(), transform, assert);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user