test getEstimatedSize()

This commit is contained in:
Ivan Socolsky 2015-11-25 17:24:06 -03:00
parent 63eca6b529
commit ebce4629ff
1 changed files with 8 additions and 1 deletions

View File

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