From 8c1c0b211e4bba35548ae1d86b13d00105899318 Mon Sep 17 00:00:00 2001 From: "Ryan X. Charles" Date: Wed, 18 Jun 2014 09:32:19 -0700 Subject: [PATCH] remove console.log from test ...cluttering the console.log output looks bad and can be avoided using methods like this. --- test/test.WalletFactory.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test.WalletFactory.js b/test/test.WalletFactory.js index abc82e4ec..f8799fd6b 100644 --- a/test/test.WalletFactory.js +++ b/test/test.WalletFactory.js @@ -49,10 +49,13 @@ describe('WalletFactory model', function() { var c2 = JSON.parse(JSON.stringify(config)); c2.verbose = 1; var wf = new WalletFactory(c2, '0.0.1'); + var save_console_log = console.log; + console.log = function() {}; var spy = sinon.spy(console, 'log'); wf.log('ok'); sinon.assert.callCount(spy, 1); spy.getCall(0).args[0].should.equal('ok'); + console.log = save_console_log; });