Skip to content

Commit

Permalink
Babel cli test correction (#10128)
Browse files Browse the repository at this point in the history
  • Loading branch information
letladi authored and existentialism committed Jun 25, 2019
1 parent b8bb93a commit 31fc1d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/babel-cli/test/index.js
Expand Up @@ -86,7 +86,7 @@ const assertTest = function(stdout, stderr, opts, cwd) {
}

if (opts.outFiles) {
const actualFiles = readDir(path.join(tmpLoc), fileFilter);
const actualFiles = readDir(tmpLoc, fileFilter);

Object.keys(actualFiles).forEach(function(filename) {
if (
Expand Down Expand Up @@ -171,12 +171,12 @@ const buildTest = function(binName, testName, opts) {
};

fs.readdirSync(fixtureLoc).forEach(function(binName) {
if (binName[0] === ".") return;
if (binName.startsWith(".")) return;

const suiteLoc = path.join(fixtureLoc, binName);
describe("bin/" + binName, function() {
fs.readdirSync(suiteLoc).forEach(function(testName) {
if (testName[0] === ".") return;
if (testName.startsWith(".")) return;

const testLoc = path.join(suiteLoc, testName);

Expand Down

0 comments on commit 31fc1d0

Please sign in to comment.