☕️ Classic, reliable, trusted test framework for Node.js and the browser
change to always use word-based diffs for now. Closes #733
TJ Holowaychuk304460279534
diff --git a/lib/reporters/base.js b/lib/reporters/base.jsindex 38404ac5..b7e9bcf4 100644--- a/lib/reporters/base.js+++ b/lib/reporters/base.js@@ -170,10 +170,7 @@ exports.list = function(failures){// actual / expected diffif ('string' == typeof actual && 'string' == typeof expected) {- var len = Math.max(actual.length, expected.length);-- if (len < 20) msg = errorDiff(err, 'Chars', escape);- else msg = errorDiff(err, 'Words', escape);+ msg = errorDiff(err, 'Words', escape);// linenosvar lines = msg.split('\n');diff --git a/test/acceptance/diffs.js b/test/acceptance/diffs.jsindex 297a1f1f..4714fcca 100644--- a/test/acceptance/diffs.js+++ b/test/acceptance/diffs.js@@ -4,7 +4,7 @@ var fs = require('fs'), cssout = fs.readFileSync('test/acceptance/fixtures/css.out', 'ascii');describe('diffs', function(){- it('should display a char diff for small strings', function(){+ it('should display a word diff for small strings', function(){var a = 'foo bar baz', b = 'foo rar baz';@@ -21,4 +21,4 @@ describe('diffs', function(){it('should display a word diff for large strings', function(){// cssin.should.equal(cssout);})-})\ No newline at end of file+})