Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
add color
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbuck committed Apr 28, 2020
1 parent da0d065 commit 2d66ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MyCustomReporter {

result.failureMessages.forEach(failureMessages => {
const newLine = "%0A";
const message = `\u001b[32m A \u001b[32m BB ` + failureMessages.replace(/\n/g, newLine);
const message = `u"\u001b[32m" A u"\u001b[32m" BB ` + failureMessages.replace(/\n/g, newLine);
const captureGroup = message.match(/:([0-9]+):([0-9]+)/);

if (!captureGroup) {
Expand Down

0 comments on commit 2d66ef7

Please sign in to comment.