add preconditions and tests
This commit is contained in:
parent
781adacbef
commit
542f6d5cea
1 changed files with 6 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue