Browse Source

Merge pull request #1229 from dskloet/test/fix-transaction

Some transaction tests were not run…
patch-2
Braydon Fuller 10 years ago
parent
commit
4bc3356b78
  1. 23
      test/transaction/transaction.js

23
test/transaction/transaction.js

@ -399,30 +399,27 @@ describe('Transaction', function() {
}).to.throw(); }).to.throw();
}; };
}; };
it('can skip the check for too much fee', function() { it('can skip the check for too much fee', buildSkipTest(
buildSkipTest(function(transaction) { function(transaction) {
return transaction return transaction
.fee(50000000) .fee(50000000)
.change(changeAddress) .change(changeAddress)
.sign(privateKey); .sign(privateKey);
}, 'disableLargeFees'); }, 'disableLargeFees'));
}); it('can skip the check for a fee that is too small', buildSkipTest(
it('can skip the check for a fee that is too small', function() { function(transaction) {
buildSkipTest(function(transaction) {
return transaction return transaction
.fee(1) .fee(1)
.change(changeAddress) .change(changeAddress)
.sign(privateKey); .sign(privateKey);
}, 'disableSmallFees'); }, 'disableSmallFees'));
}); it('can skip the check that prevents dust outputs', buildSkipTest(
it('can skip the check that prevents dust outputs', function() { function(transaction) {
buildSkipTest(function(transaction) {
return transaction return transaction
.to(toAddress, 1000) .to(toAddress, 100)
.change(changeAddress) .change(changeAddress)
.sign(privateKey); .sign(privateKey);
}, 'disableDustOutputs'); }, 'disableDustOutputs'));
});
it('can skip the check that prevents unsigned outputs', function() { it('can skip the check that prevents unsigned outputs', function() {
var transaction = new Transaction(); var transaction = new Transaction();
transaction.from(simpleUtxoWith1BTC); transaction.from(simpleUtxoWith1BTC);

Loading…
Cancel
Save