From aa54e32a297c58ca786e24a61f20e21dd1b112c0 Mon Sep 17 00:00:00 2001 From: igorgbr Date: Wed, 11 May 2022 18:51:30 -0300 Subject: [PATCH] fix: altera variavel pwd para currentPath --- evaluator.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/evaluator.spec.js b/evaluator.spec.js index 146ae7e..861ef04 100644 --- a/evaluator.spec.js +++ b/evaluator.spec.js @@ -5,11 +5,11 @@ const buildPath = (absolutePath, filePath) => (`${absolutePath}/${filePath}`); describe('Evaluator', () => { it('', () => { - const pwd = __dirname; - const evaluatorFile = buildPath(pwd, 'evaluator.js'); - const jestOutputFile = buildPath(pwd, 'tests/jest-output.json'); - const requirementsFile = buildPath(pwd, 'tests/requirements.json'); - const resultFile = buildPath(pwd, 'tests/result.json'); + const currentPath = __dirname; + const evaluatorFile = buildPath(currentPath, 'evaluator.js'); + const jestOutputFile = buildPath(currentPath, 'tests/jest-output.json'); + const requirementsFile = buildPath(currentPath, 'tests/requirements.json'); + const resultFile = buildPath(currentPath, 'tests/result.json'); execSync( `node ${evaluatorFile} ${jestOutputFile} ${requirementsFile} ${resultFile}`,