Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Add tests for #1182 (close #1182)

Travis Jeffery8ba841698199
diff --git a/test/acceptance/diffs.js b/test/acceptance/diffs.js
index 17c3dfa4..b0b6eaee 100644
--- a/test/acceptance/diffs.js
+++ b/test/acceptance/diffs.js
@@ -77,4 +77,11 @@ describe('diffs', function(){
// tobi.should.eql(loki);
});
+
+ it('should show value diffs and not be affected by commas', function(){
+ var obj1 = { a: 123 };
+ var obj2 = { a: 123, b: 456 };
+
+ // obj1.should.equal(obj2);
+ });
});
diff --git a/test/acceptance/utils.js b/test/acceptance/utils.js
index 1ebdb296..9c900a92 100644
--- a/test/acceptance/utils.js
+++ b/test/acceptance/utils.js
@@ -83,7 +83,7 @@ describe('lib/utils', function () {
var travis = { name: 'travis' };
travis.whoami = travis;
- utils.stringify(travis).should.equal('{\n "name": "travis",\n "whoami": "[Circular]"\n}');
+ utils.stringify(travis).should.equal('{\n "name": "travis"\n "whoami": "[Circular]"\n}');
});
});
});