From dbf1ae2f6452d77105d53dded9eec507b92c7d59 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Thu, 30 Oct 2014 16:43:12 -0300 Subject: [PATCH] fixed test --- test/Wallet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Wallet.js b/test/Wallet.js index e64202d89..7090943ac 100644 --- a/test/Wallet.js +++ b/test/Wallet.js @@ -1609,10 +1609,11 @@ describe('Wallet model', function() { new: false, hasChanged: true, }); - w._checkSentTx = sinon.stub().yields(true); + w._checkSentTx = sinon.stub().yields('123'); w._onTxProposal('senderID', data); txp.setSent.calledOnce.should.be.true; + txp.setSent.calledWith('123').should.be.true; w.sendTxProposal.called.should.be.false; done(); });