make Wallet tests work in mocha browser
This commit is contained in:
parent
f7e34acae8
commit
46efea1243
1 changed files with 3 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ describe('Wallet model', function() {
|
|||
should.exist(w.privateKey);
|
||||
should.exist(w.txProposals);
|
||||
should.exist(w.netKey);
|
||||
var b = new Buffer(w.netKey, 'base64');
|
||||
var b = new bitcore.Buffer(w.netKey, 'base64');
|
||||
b.toString('hex').length.should.equal(16);
|
||||
});
|
||||
|
||||
|
|
@ -291,6 +291,7 @@ describe('Wallet model', function() {
|
|||
});
|
||||
|
||||
it('call reconnect after interval', function(done) {
|
||||
this.timeout(10000);
|
||||
var w = createW2();
|
||||
var testTime = 1000;
|
||||
var callCount = 0;
|
||||
|
|
@ -543,6 +544,7 @@ describe('Wallet model', function() {
|
|||
});
|
||||
});
|
||||
it('should create & sign transaction from received funds', function(done) {
|
||||
this.timeout(10000);
|
||||
var w = createW2();
|
||||
var pk = w.privateKey;
|
||||
w.privateKey = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue