From 542f6d5ceab9b9d2a4f89e0c06bb4cdf1e4338a6 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Wed, 18 Jun 2014 10:09:40 -0300 Subject: [PATCH] add preconditions and tests --- test/test.Wallet.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test.Wallet.js b/test/test.Wallet.js index 4c89a54b4..8715cf7bc 100644 --- a/test/test.Wallet.js +++ b/test/test.Wallet.js @@ -753,6 +753,12 @@ describe('Wallet model', function() { data.addressBook['msj42CCGruhRsFrGATiUuh25dtxYtnpbTx'].createdTs = 1403102215; w._handleAddressBook('senderID', data, true); Object.keys(w.addressBook).length.should.equal(3); + w.sendTxProposal.should.throw('Illegal Argument.'); + (function() { + w.sendTxProposal(ntxid) + }).should.not.throw(); + done(); + }); }); it('#getNetworkName', function() {