Skip to content

Commit

Permalink
diff colors were reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
kirbysayshi authored and indexzero committed Jan 18, 2013
1 parent 154b6cd commit 458eb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assert/error.js
Expand Up @@ -67,7 +67,7 @@ function styleLines(str, name) {
*/

function errorDiff(err, type) {
return diff['diff' + type](err.actual, err.expected).map(function(str){
return diff['diff' + type](err.expected, err.actual).map(function(str){
if (/^(\n+)$/.test(str.value)) str.value = Array(++RegExp.$1.length).join('<newline>');
if (str.added) return styleLines(str.value, 'green');
if (str.removed) return styleLines(str.value, 'red');
Expand Down

0 comments on commit 458eb3e

Please sign in to comment.