Wallet model and testing

This commit is contained in:
Gustavo Cortez 2014-04-10 17:57:41 -03:00 committed by Manuel Araoz
commit 423fe5284b

View file

@ -54,25 +54,25 @@ describe('Wallet model', function() {
var w = new Wallet(); var w = new Wallet();
should.exist(w); 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(); var w = new Wallet();
w.listUnspent(addresses, function(a) { w.listUnspent(addresses, function(a) {
should.exist(a); should.exist(a);
done(); done();
}); });
});*/ });
it('should return balance', function () { it('should return balance', function () {
var w = new Wallet(); var w = new Wallet();
var b = w.getBalance(unspent); var b = w.getBalance(unspent);
should.exist(b); should.exist(b);
b.should.equal(91); b.should.equal(91);
}); });
/*it('should return txid', function (done) { it('should return txid', function (done) {
var w = new Wallet(); var w = new Wallet();
w.sendRawTransaction(rawtx, function(a) { w.sendRawTransaction(rawtx, function(a) {
should.exist(a); should.exist(a);
done(); done();
}); });
});*/ });
}); });