Wallet model and testing
This commit is contained in:
parent
af883c30ec
commit
423fe5284b
1 changed files with 4 additions and 4 deletions
|
|
@ -54,25 +54,25 @@ describe('Wallet model', function() {
|
|||
var w = new Wallet();
|
||||
should.exist(w);
|
||||
});
|
||||
/*it('should return array of unspent output', function(done) {
|
||||
it('should return array of unspent output', function(done) {
|
||||
var w = new Wallet();
|
||||
w.listUnspent(addresses, function(a) {
|
||||
should.exist(a);
|
||||
done();
|
||||
});
|
||||
});*/
|
||||
});
|
||||
it('should return balance', function () {
|
||||
var w = new Wallet();
|
||||
var b = w.getBalance(unspent);
|
||||
should.exist(b);
|
||||
b.should.equal(91);
|
||||
});
|
||||
/*it('should return txid', function (done) {
|
||||
it('should return txid', function (done) {
|
||||
var w = new Wallet();
|
||||
w.sendRawTransaction(rawtx, function(a) {
|
||||
should.exist(a);
|
||||
done();
|
||||
});
|
||||
});*/
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue