test getEstimatedSize()
This commit is contained in:
parent
63eca6b529
commit
ebce4629ff
|
@ -7,7 +7,7 @@ var should = chai.should();
|
||||||
var TxProposal = require('../../lib/model/txproposalv3');
|
var TxProposal = require('../../lib/model/txproposalv3');
|
||||||
var Bitcore = require('bitcore-lib');
|
var Bitcore = require('bitcore-lib');
|
||||||
|
|
||||||
describe('TxProposal v3', function() {
|
describe.only('TxProposal v3', function() {
|
||||||
describe('#create', function() {
|
describe('#create', function() {
|
||||||
it('should create a TxProposal', function() {
|
it('should create a TxProposal', function() {
|
||||||
var txp = TxProposal.create(aTxpOpts());
|
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() {
|
describe('#sign', function() {
|
||||||
it('should sign 2-2', function() {
|
it('should sign 2-2', function() {
|
||||||
var txp = TxProposal.fromObj(aTXP());
|
var txp = TxProposal.fromObj(aTXP());
|
||||||
|
|
Loading…
Reference in New Issue