Skip to content

Commit

Permalink
fix: altera variavel pwd para currentPath
Browse files Browse the repository at this point in the history
  • Loading branch information
igorgbr committed May 11, 2022
1 parent 82aee19 commit aa54e32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions evaluator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit aa54e32

Please sign in to comment.