Skip to content

Commit

Permalink
Fix logs capture by adding an end of line (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpizenberg authored Sep 17, 2021
1 parent 3cee5ea commit 54920e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/deno_logger.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const logs = [];
console.elmlog = (str) => logs.push(str);
console.elmlog = (str) => logs.push(str + "\n");
2 changes: 1 addition & 1 deletion templates/node_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { performance } = require("perf_hooks");

// Capture Debug.log from elm code
let logs = [];
console.elmlog = (str) => logs.push(str);
console.elmlog = (str) => logs.push(str + "\n");

// Compiled by elm-test-rs from templates/Runner.elm
const { Elm } = require("./Runner.elm.js");
Expand Down

0 comments on commit 54920e1

Please sign in to comment.