test in Txproposals working again

This commit is contained in:
Matias Alejo Garcia 2014-08-01 01:09:46 -03:00
commit 5d2b50f77f
8 changed files with 72 additions and 47 deletions

View file

@ -1064,7 +1064,10 @@ describe('Wallet model', function() {
]);
var txp = {
'txProposal': {
'builderObj': txb.toObj()
builderObj: txb.toObj(),
inputChainPaths: 'm/1',
creator: '1234',
createdTs: Date.now(),
}
};
w._handleTxProposal('senderID', txp, true);
@ -1072,11 +1075,11 @@ describe('Wallet model', function() {
};
it('should validate for undefined', function(done) {
var result = 'new';
var result = 'corrupt';
var signhash;
testValidate(signhash, result, done);
});
it('should validate for SIGHASH_ALL', function(done) {
it.only('should validate for SIGHASH_ALL', function(done) {
var result = 'new';
var signhash = Transaction.SIGHASH_ALL;
testValidate(signhash, result, done);