update bitcore bundle
This commit is contained in:
parent
77f14bc846
commit
b69def07f7
3 changed files with 603 additions and 44128 deletions
44497
lib/bitcore.js
44497
lib/bitcore.js
File diff suppressed because one or more lines are too long
|
|
@ -40,12 +40,14 @@ describe('TxProposals', function() {
|
||||||
should.exist(txps);
|
should.exist(txps);
|
||||||
txps.network.name.should.equal('livenet');
|
txps.network.name.should.equal('livenet');
|
||||||
});
|
});
|
||||||
it('should fail create an instance from an Object with errors', function() {
|
it('should skip Objects with errors', function() {
|
||||||
(function() {var txps = TxProposals.fromObj({
|
var txps = TxProposals.fromObj({
|
||||||
networkName:'livenet',
|
networkName:'livenet',
|
||||||
walletId: '123a12',
|
walletId: '123a12',
|
||||||
txps: [ { a: 1 }],
|
txps: [ { a: 1 }],
|
||||||
}) }).should.throw('Illegal');
|
});
|
||||||
|
should.exist(txps);
|
||||||
|
Object.keys(txps.txps).length.should.equal(0);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('#getNtxids', function() {
|
describe('#getNtxids', function() {
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ describe('Insight model', function() {
|
||||||
|
|
||||||
sinon.stub(blockchain, "requestPost", function(url, data, cb) {
|
sinon.stub(blockchain, "requestPost", function(url, data, cb) {
|
||||||
url.should.be.equal('/api/tx/send');
|
url.should.be.equal('/api/tx/send');
|
||||||
var res = {statusCode: 200};
|
var res = {status: 200};
|
||||||
var body = {txid: 1234};
|
var body = {txid: 1234};
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
cb(null, res, body);
|
cb(null, res, body);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue