Skip to content

Commit

Permalink
test: color >
Browse files Browse the repository at this point in the history
  • Loading branch information
syzzana committed Nov 25, 2023
1 parent b68972c commit 21f675b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/testResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ export const highlightErrorIndicator = (codeSnippet: string): string => {
const styledLines = lines.map((line) => {
if (line.includes("^")) {
return Color.text(line).red().valueOf();
} else if(line.includes(">")) {
const lineChar = Color.text(line.charAt(0)).red().valueOf();
line.replace(line.charAt(0), lineChar);
} else if(line.includes(">") && !line.includes("=")) {
const lineChar = Color.text(line.charAt(13)).blue().valueOf();
line.replace(line.charAt(13), lineChar);
return line;
} else {
return line;
Expand Down

0 comments on commit 21f675b

Please sign in to comment.