diff --git a/bin/generate-browser-test b/bin/generate-browser-test index 1afe50e3eb..2c37f08cee 100755 --- a/bin/generate-browser-test +++ b/bin/generate-browser-test @@ -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)"); diff --git a/test/_helper.js b/test/_helper.js index e6b507ca63..dc892957bd 100644 --- a/test/_helper.js +++ b/test/_helper.js @@ -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) { diff --git a/test/transformation.js b/test/transformation.js index f128e6461f..582afc5a32 100644 --- a/test/transformation.js +++ b/test/transformation.js @@ -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);