mirror of https://github.com/BTCPrivate/copay.git
fix test / id name
This commit is contained in:
parent
0e6b31b9cb
commit
ae08d5611a
|
@ -159,7 +159,7 @@ TxProposals.fromObj = function(o) {
|
||||||
});
|
});
|
||||||
o.txps.forEach(function(o2) {
|
o.txps.forEach(function(o2) {
|
||||||
var t = TxProposal.fromObj(o2);
|
var t = TxProposal.fromObj(o2);
|
||||||
if (id) {
|
if (t.builder) {
|
||||||
var id = t.builder.build().getNormalizedHash().toString('hex');
|
var id = t.builder.build().getNormalizedHash().toString('hex');
|
||||||
ret.txps[id] = t;
|
ret.txps[id] = t;
|
||||||
}
|
}
|
||||||
|
|
|
@ -615,6 +615,7 @@ describe('TxProposals model', function() {
|
||||||
var o2 = JSON.parse(JSON.stringify(o));
|
var o2 = JSON.parse(JSON.stringify(o));
|
||||||
var w2 = TxProposals.fromObj(o2);
|
var w2 = TxProposals.fromObj(o2);
|
||||||
w2.walletId.should.equal(w.walletId);
|
w2.walletId.should.equal(w.walletId);
|
||||||
|
|
||||||
var tx2 = w2.txps[ntxid].builder.build();
|
var tx2 = w2.txps[ntxid].builder.build();
|
||||||
tx2.isComplete().should.equal(false);
|
tx2.isComplete().should.equal(false);
|
||||||
tx2.countInputMissingSignatures(0).should.equal(2);
|
tx2.countInputMissingSignatures(0).should.equal(2);
|
||||||
|
|
Loading…
Reference in New Issue