From 846766bd4a566f6b8fb8292139f94890b4b150e4 Mon Sep 17 00:00:00 2001 From: Travis Jeffery Date: Sun, 20 Jul 2014 01:13:16 -0400 Subject: [PATCH] Add tests for #1182 (close #1182) --- test/acceptance/diffs.js | 7 +++++++ test/acceptance/utils.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/test/acceptance/diffs.js b/test/acceptance/diffs.js index 17c3dfa470..b0b6eaee89 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 1ebdb296ee..9c900a92dd 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}'); }); }); });