Put )); on a separate line.
This commit is contained in:
parent
6729b38944
commit
dc07788e53
|
@ -423,38 +423,43 @@ describe('Transaction', function() {
|
||||||
.fee(50000000)
|
.fee(50000000)
|
||||||
.change(changeAddress)
|
.change(changeAddress)
|
||||||
.sign(privateKey);
|
.sign(privateKey);
|
||||||
}, 'disableLargeFees', errors.Transaction.FeeError.TooLarge));
|
}, 'disableLargeFees', errors.Transaction.FeeError.TooLarge
|
||||||
|
));
|
||||||
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', buildSkipTest(
|
||||||
function(transaction) {
|
function(transaction) {
|
||||||
return transaction
|
return transaction
|
||||||
.fee(1)
|
.fee(1)
|
||||||
.change(changeAddress)
|
.change(changeAddress)
|
||||||
.sign(privateKey);
|
.sign(privateKey);
|
||||||
}, 'disableSmallFees', errors.Transaction.FeeError.TooSmall));
|
}, 'disableSmallFees', errors.Transaction.FeeError.TooSmall
|
||||||
|
));
|
||||||
it('can skip the check that prevents dust outputs', buildSkipTest(
|
it('can skip the check that prevents dust outputs', buildSkipTest(
|
||||||
function(transaction) {
|
function(transaction) {
|
||||||
return transaction
|
return transaction
|
||||||
.to(toAddress, 100)
|
.to(toAddress, 100)
|
||||||
.change(changeAddress)
|
.change(changeAddress)
|
||||||
.sign(privateKey);
|
.sign(privateKey);
|
||||||
}, 'disableDustOutputs', errors.Transaction.DustOutputs));
|
}, 'disableDustOutputs', errors.Transaction.DustOutputs
|
||||||
|
));
|
||||||
it('can skip the check that prevents unsigned outputs', buildSkipTest(
|
it('can skip the check that prevents unsigned outputs', buildSkipTest(
|
||||||
function(transaction) {
|
function(transaction) {
|
||||||
return transaction
|
return transaction
|
||||||
.to(toAddress, 10000)
|
.to(toAddress, 10000)
|
||||||
.change(changeAddress);
|
.change(changeAddress);
|
||||||
}, 'disableIsFullySigned', errors.Transaction.MissingSignatures));
|
}, 'disableIsFullySigned', errors.Transaction.MissingSignatures
|
||||||
|
));
|
||||||
it('can skip the check that avoids spending more bitcoins than the inputs for a transaction', buildSkipTest(
|
it('can skip the check that avoids spending more bitcoins than the inputs for a transaction', buildSkipTest(
|
||||||
function(transaction) {
|
function(transaction) {
|
||||||
return transaction
|
return transaction
|
||||||
.to(toAddress, 10000000000000)
|
.to(toAddress, 10000000000000)
|
||||||
.change(changeAddress);
|
.change(changeAddress);
|
||||||
}, 'disableMoreOutputThanInput',
|
}, 'disableMoreOutputThanInput',
|
||||||
errors.Transaction.InvalidOutputAmountSum,
|
errors.Transaction.InvalidOutputAmountSum,
|
||||||
{
|
{
|
||||||
'disableSmallFees': true,
|
'disableSmallFees': true,
|
||||||
'disableIsFullySigned': true
|
'disableIsFullySigned': true
|
||||||
}));
|
}
|
||||||
|
));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue