From dbd5ed43463928786aa474e9294e495b6c44183b Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 11 Apr 2014 07:36:43 -0300 Subject: [PATCH] add testes to test.txproposal --- test/test.txproposal.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test.txproposal.js b/test/test.txproposal.js index d26938f2d..213dcaa07 100644 --- a/test/test.txproposal.js +++ b/test/test.txproposal.js @@ -414,13 +414,25 @@ var _dumpChunks = function (scriptSig, label) { (w3.txps[0].seenBy[priv3.id] - ts > 0).should.equal(true); w.merge(w2); + w.txps.length.should.equal(1); w.txps[0].tx.isComplete().should.equal(false); w.txps[0].tx.countInputMissingSignatures(0).should.equal(1); + (w.txps[0].seenBy[priv.id] - ts > 0).should.equal(true); + (w.txps[0].seenBy[priv2.id] - ts > 0).should.equal(true); + (w.txps[0].signedBy[priv.id] - ts > 0).should.equal(true); + (w.txps[0].signedBy[priv2.id] - ts > 0).should.equal(true); w.merge(w3); w.txps[0].tx.isComplete().should.equal(true); w.txps[0].tx.countInputMissingSignatures(0).should.equal(0); + w.txps.length.should.equal(1); + (w.txps[0].seenBy[priv.id] - ts > 0).should.equal(true); + (w.txps[0].seenBy[priv2.id] - ts > 0).should.equal(true); + (w.txps[0].seenBy[priv3.id] - ts > 0).should.equal(true); + (w.txps[0].signedBy[priv.id] - ts > 0).should.equal(true); + (w.txps[0].signedBy[priv2.id] - ts > 0).should.equal(true); + (w.txps[0].signedBy[priv3.id] - ts > 0).should.equal(true); });