Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Add acceptance test for canonicalized object diffs (#1079)

Travis Jefferyae48a4c5f9c1
diff --git a/test/acceptance/diffs.js b/test/acceptance/diffs.js
index 7058aa06..17c3dfa4 100644
--- a/test/acceptance/diffs.js
+++ b/test/acceptance/diffs.js
@@ -14,6 +14,13 @@ describe('diffs', function(){
// expected.should.eql(actual);
});
+ it('should display a diff of canonicalized objects', function(){
+ var actual = { name: 'travis j', age: 23 }
+ , expected = { age: 23, name: 'travis' };
+
+ // actual.should.eql(expected);
+ });
+
it('should display a diff for medium strings', function(){
var expected = 'foo bar baz\nfoo bar baz\nfoo bar baz'
, actual = 'foo bar baz\nfoo rar baz\nfoo bar raz';