remove console.log from test

...cluttering the console.log output looks bad and can be avoided using methods
like this.
This commit is contained in:
Ryan X. Charles 2014-06-18 09:32:19 -07:00
parent 107414ec7e
commit 8c1c0b211e
1 changed files with 3 additions and 0 deletions

View File

@ -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;
});