fixing tests

This commit is contained in:
Manuel Araoz 2014-05-29 16:17:17 -03:00
commit 4cd90c45a2
4 changed files with 8 additions and 4 deletions

View file

@ -42,7 +42,7 @@ var createPKR = function (bip32s) {
for(var i=0; i<5; i++) {
if (bip32s) {
var b=bip32s[i];
w.addCopayer(b?b.getExtendedPublicKeyString():null);
w.addCopayer(b?b.deriveBIP45Branch().extendedPublicKeyString():null);
}
else
w.addCopayer();
@ -72,7 +72,7 @@ describe('TxProposals model', function() {
var priv = new PrivateKey(config);
var priv2 = new PrivateKey(config);
var priv3 = new PrivateKey(config);
var ts = Date.now();
var ts = Date.now();
var isChange=0;
var index=0;
var pkr = createPKR([priv, priv2, priv3]);

View file

@ -132,6 +132,7 @@ describe('Wallet model', function() {
);
var t = w.txProposals;
console.log(t);
var k = Object.keys(t.txps)[0];
var tx = t.txps[k].builder.build();
should.exist(tx);