Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Update diff to 1.0.7 and switch to the new WordsWithSpace diff algorithm.

Andreas Lind Petersen3cb9295cd700
diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index 35c90916..b8d9f822 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -175,7 +175,7 @@ exports.list = function(failures){
// actual / expected diff
if ('string' == typeof actual && 'string' == typeof expected) {
- msg = errorDiff(err, 'Words', escape);
+ msg = errorDiff(err, 'WordsWithSpace', escape);
// linenos
var lines = msg.split('\n');
diff --git a/package.json b/package.json
index abf6ef96..a6994567 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
"commander": "0.6.1",
"growl": "1.7.x",
"jade": "0.26.3",
- "diff": "1.0.2",
+ "diff": "1.0.7",
"debug": "*",
"mkdirp": "0.3.5",
"glob": "3.2.3"