From ebce4629ff26213aebe83c0d3f7c225d5e331162 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 25 Nov 2015 17:24:06 -0300 Subject: [PATCH] test getEstimatedSize() --- test/models/txproposalv3.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/models/txproposalv3.js b/test/models/txproposalv3.js index 423f75c..4e659c4 100644 --- a/test/models/txproposalv3.js +++ b/test/models/txproposalv3.js @@ -7,7 +7,7 @@ var should = chai.should(); var TxProposal = require('../../lib/model/txproposalv3'); var Bitcore = require('bitcore-lib'); -describe('TxProposal v3', function() { +describe.only('TxProposal v3', function() { describe('#create', function() { it('should create a TxProposal', function() { var txp = TxProposal.create(aTxpOpts()); @@ -61,6 +61,13 @@ describe('TxProposal v3', function() { }); }); + describe('#getEstimatedSize', function() { + it('should return estimated size in bytes', function() { + var x = TxProposal.fromObj(aTXP()); + x.getEstimatedSize().should.equal(407); + }); + }); + describe('#sign', function() { it('should sign 2-2', function() { var txp = TxProposal.fromObj(aTXP());