Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
valkjsaaa committed Nov 7, 2023
2 parents 31f081b + 4375f14 commit 2917ae9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions scripts/set-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const interpreter = new DslInterpreter(descriptors, true);
//get all commands
const cmd = fs.readFileSync('./__test__/dry-run-input.txt', 'utf8');
// split by new line
const cmdList = cmd.split('\n');
const cmdList = cmd.split("\\n");
console.log(cmdList);
let output = "";
Expand All @@ -46,11 +46,11 @@ for (let i = 0; i < cmdList.length; i++) {
try {
let funcCallResult = await interpreter.interpret(cmd);
console.log(funcCallResult);
output += JSON.stringify({status: 'success', result: funcCallResult}) + '\n';
output += JSON.stringify({status: 'success', result: funcCallResult}) + "\\n";
// print ok or success
}
catch (e) {
output += JSON.stringify({status: 'error', result: e}) + '\n';
output += JSON.stringify({status: 'error', result: e}) + "\\n";
}
}
Expand Down

0 comments on commit 2917ae9

Please sign in to comment.