From aebebd3dde4fa8bf7247f99738f6054421676fac Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Wed, 13 Sep 2017 16:51:15 -0700 Subject: [PATCH] Remove unused expected.json parsing. --- packages/babel-helper-fixtures/src/index.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/babel-helper-fixtures/src/index.js b/packages/babel-helper-fixtures/src/index.js index 42324b4237..b768442302 100644 --- a/packages/babel-helper-fixtures/src/index.js +++ b/packages/babel-helper-fixtures/src/index.js @@ -84,11 +84,11 @@ export default function get(entryLoc): Array { function push(taskName, taskDir) { const actualLocAlias = suiteName + "/" + taskName + "/actual.js"; - let expectLocAlias = suiteName + "/" + taskName + "/expected.js"; + const expectLocAlias = suiteName + "/" + taskName + "/expected.js"; const execLocAlias = suiteName + "/" + taskName + "/exec.js"; const actualLoc = taskDir + "/actual.js"; - let expectLoc = taskDir + "/expected.js"; + const expectLoc = taskDir + "/expected.js"; let execLoc = taskDir + "/exec.js"; if (fs.statSync(taskDir).isFile()) { @@ -98,11 +98,6 @@ export default function get(entryLoc): Array { execLoc = taskDir; } - if (resolve.relative(expectLoc + "on")) { - expectLoc += "on"; - expectLocAlias += "on"; - } - const taskOpts = cloneDeep(suite.options); const taskOptsLoc = resolve(taskDir + "/options");