add preconditions and tests

This commit is contained in:
Manuel Araoz 2014-06-18 10:09:40 -03:00
parent 781adacbef
commit 542f6d5cea
1 changed files with 6 additions and 0 deletions

View File

@ -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() {