Skip to content

Commit

Permalink
diffs: switch to using background color instead of visible spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-brade committed May 13, 2020
1 parent 926a4ed commit a01b05e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/reporters/base.js
Expand Up @@ -68,8 +68,8 @@ exports.colors = {
green: 32,
light: 90,
'diff gutter': 90,
'diff added': 32,
'diff removed': 31
'diff added': '30;42',
'diff removed': '30;41'
};

/**
Expand Down Expand Up @@ -390,10 +390,6 @@ function pad(str, len) {
* @return {string} Diff
*/
function inlineDiff(actual, expected) {
// make spaces visible by replacing them with U+2423 (open box char)
actual = actual.replace(/ /gi, '\u2423');
expected = expected.replace(/ /gi, '\u2423');

var msg = errorDiff(actual, expected);

// linenos
Expand Down

0 comments on commit a01b05e

Please sign in to comment.