fixed test

This commit is contained in:
Ivan Socolsky 2014-10-30 16:43:12 -03:00
commit dbf1ae2f64

View file

@ -1609,10 +1609,11 @@ describe('Wallet model', function() {
new: false, new: false,
hasChanged: true, hasChanged: true,
}); });
w._checkSentTx = sinon.stub().yields(true); w._checkSentTx = sinon.stub().yields('123');
w._onTxProposal('senderID', data); w._onTxProposal('senderID', data);
txp.setSent.calledOnce.should.be.true; txp.setSent.calledOnce.should.be.true;
txp.setSent.calledWith('123').should.be.true;
w.sendTxProposal.called.should.be.false; w.sendTxProposal.called.should.be.false;
done(); done();
}); });