Revert "Delete BuilderMockV0"

This is a combination of 3 commits:
* Revertion of commit b39a683339.
* Revertion of commit 61aea8db3d.
* Revertion of commit 5f666aef66.
This commit is contained in:
Esteban Ordano 2014-09-10 09:35:42 -03:00
commit 00774b62fd
5 changed files with 48 additions and 11 deletions

View file

@ -120,7 +120,7 @@ describe('TxProposal', function() {
builderObj: b.toObj(),
inputChainPaths: ['m/1'],
});
}).should.throw('Invalid or Incompatible Backup Detected');
}).should.throw('Invalid');
});
it('sets force opts', function() {
var b = new FakeBuilder();
@ -134,7 +134,7 @@ describe('TxProposal', function() {
};
(function() {
txp = TxProposal.fromObj(o,{pepe:100});
}).should.throw('Invalid or Incompatible Backup Detected');
}).should.throw('Invalid tx proposal: no ins');
o.builderObj.opts.should.deep.equal({juan:1, pepe:100, feeSat:undefined, fee:undefined});
});
});