mirror of https://github.com/BTCPrivate/copay.git
Remove several console.log
This commit is contained in:
parent
a2c39714c4
commit
68697dc3a7
|
@ -62,12 +62,6 @@ describe('HDParams model', function() {
|
||||||
|
|
||||||
it('should throw an error', function() {
|
it('should throw an error', function() {
|
||||||
var data = new HDParams();
|
var data = new HDParams();
|
||||||
|
|
||||||
if (data instanceof HDParams) {
|
|
||||||
console.log('ok');
|
|
||||||
} else {
|
|
||||||
console.log('error');
|
|
||||||
}
|
|
||||||
(function() {
|
(function() {
|
||||||
HDParams.fromObj(data);
|
HDParams.fromObj(data);
|
||||||
}).should.throw('BADDATA');
|
}).should.throw('BADDATA');
|
||||||
|
|
|
@ -1263,7 +1263,7 @@ describe('Identity model', function() {
|
||||||
expect(iden._checkVersion()).to.be.undefined;
|
expect(iden._checkVersion()).to.be.undefined;
|
||||||
expect(iden._checkVersion('0.0.0')).to.be.undefined;
|
expect(iden._checkVersion('0.0.0')).to.be.undefined;
|
||||||
(function() {
|
(function() {
|
||||||
console.log('b', iden._checkVersion('9.9.9'));
|
iden._checkVersion('9.9.9');
|
||||||
}).should.throw('Major difference');
|
}).should.throw('Major difference');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -27,7 +27,6 @@ describe('PrivateKey model', function() {
|
||||||
var w = new PrivateKey(pkConfig);
|
var w = new PrivateKey(pkConfig);
|
||||||
var pubk1 = w.getExtendedPublicKeyString();
|
var pubk1 = w.getExtendedPublicKeyString();
|
||||||
should.exist(pubk1);
|
should.exist(pubk1);
|
||||||
console.log(pubk1);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return the private key', function() {
|
it('should return the private key', function() {
|
||||||
|
|
|
@ -213,8 +213,6 @@ describe('TxProposals', function() {
|
||||||
describe('#getUsedUnspent', function() {
|
describe('#getUsedUnspent', function() {
|
||||||
it('should return an empty object', function() {
|
it('should return an empty object', function() {
|
||||||
var txps = new TxProposals();
|
var txps = new TxProposals();
|
||||||
|
|
||||||
console.log(txps);
|
|
||||||
txps.txps = {
|
txps.txps = {
|
||||||
a: {
|
a: {
|
||||||
isPending: sinon.stub().returns(false)
|
isPending: sinon.stub().returns(false)
|
||||||
|
|
|
@ -212,7 +212,6 @@ describe('Wallet model', function() {
|
||||||
status.should.equal(Wallet.TX_PROPOSAL_SENT);
|
status.should.equal(Wallet.TX_PROPOSAL_SENT);
|
||||||
|
|
||||||
w.network.send.calledOnce.should.equal(true);
|
w.network.send.calledOnce.should.equal(true);
|
||||||
console.log(w.network.send.getCall(0).args[1]);
|
|
||||||
w.network.send.getCall(0).args[1].type.should.equal("txProposal");
|
w.network.send.getCall(0).args[1].type.should.equal("txProposal");
|
||||||
should.exist(w.network.send.getCall(0).args[1].indexes);
|
should.exist(w.network.send.getCall(0).args[1].indexes);
|
||||||
should.exist(w.network.send.getCall(0).args[1].txProposal);
|
should.exist(w.network.send.getCall(0).args[1].txProposal);
|
||||||
|
@ -1910,7 +1909,7 @@ describe('Wallet model', function() {
|
||||||
inputChainPaths: ['/m/1'],
|
inputChainPaths: ['/m/1'],
|
||||||
};
|
};
|
||||||
var map = w._getPubkeyToCopayerMap(txp);
|
var map = w._getPubkeyToCopayerMap(txp);
|
||||||
console.log('[Wallet.js.1526:map:]', map); //TODO
|
//console.log('[Wallet.js.1526:map:]', map); //TODO
|
||||||
Object.keys(map).length.should.equal(1);
|
Object.keys(map).length.should.equal(1);
|
||||||
map['123'].should.equal('juan');
|
map['123'].should.equal('juan');
|
||||||
stub.restore();
|
stub.restore();
|
||||||
|
|
|
@ -433,7 +433,6 @@ describe('Network / Async', function() {
|
||||||
|
|
||||||
var lockIds = ['abc001', 'abc002'];
|
var lockIds = ['abc001', 'abc002'];
|
||||||
n.lockIncommingConnections(lockIds);
|
n.lockIncommingConnections(lockIds);
|
||||||
console.log(n.allowedCopayerIds);
|
|
||||||
Object.keys(n.allowedCopayerIds).length.should.be.equal(2);
|
Object.keys(n.allowedCopayerIds).length.should.be.equal(2);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue