Browse files

diff colors were reversed

  • Loading branch information...
1 parent 154b6cd commit 458eb3e3a2d65c20e311eb65319c88cf95bebdbd @kirbysayshi kirbysayshi committed with indexzero Nov 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/assert/error.js
View
2 lib/assert/error.js
@@ -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');

0 comments on commit 458eb3e

Please sign in to comment.