Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing some issues with cli step / json formatter feature on windows

  • Loading branch information...
commit a0380719e4b51f8539f6bc14de3f28ec2c736e8a 1 parent bc7b840
@vantreeseba vantreeseba authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 features/step_definitions/cli_steps.js
View
4 features/step_definitions/cli_steps.js
@@ -79,9 +79,9 @@ var cliSteps = function cliSteps() {
var actualError = lastRun['error'];
var actualStderr = lastRun['stderr'];
- expectedOutput = expectedOutput.replace(/<current-directory>/g, tmpDir);
+ expectedOutput = expectedOutput.replace(/<current-directory>/g, tmpDir.replace(/\\/g,'/'));
- try { var actualJson = JSON.parse(actualOutput); }
+ try { var actualJson = JSON.parse(actualOutput.replace(/\\\\/g,'/')); }
catch(err) { throw new Error("Error parsing actual JSON:\n" + actualOutput); }
try { var expectedJson = JSON.parse(expectedOutput); }
Please sign in to comment.
Something went wrong with that request. Please try again.