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());