diff --git a/package.json b/package.json index 8e576b42..5180e5a0 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ }, "devDependencies": { "ciao": "^0.6.0", + "difflet": "^1.0.1", "istanbul": "^0.4.2", "jshint": "^2.5.6", "nsp": "^2.2.0", diff --git a/test/unit/run.js b/test/unit/run.js index 9d210853..de13bbe0 100644 --- a/test/unit/run.js +++ b/test/unit/run.js @@ -1,6 +1,12 @@ +var tape = require('tape'), + diff = require('difflet')({ indent : 2, comment : true }); -var tape = require('tape'); -var common = {}; +var common = { + // a visual deep diff rendered using console.error() + diff: function( actual, expected ){ + console.error( diff.compare( actual, expected ) ); + } +}; var tests = [ require('./controller/index'),