mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
[FIX] fix test and do not set tx_json.Fee in maxFee method
This commit is contained in:
@@ -839,15 +839,12 @@ describe('Transaction', function() {
|
||||
var transaction = new Transaction();
|
||||
|
||||
transaction.maxFee('a');
|
||||
assert.strictEqual(transaction.tx_json.Fee, void(0));
|
||||
assert(!transaction._setLastLedger);
|
||||
assert(!transaction._setMaxFee);
|
||||
|
||||
transaction.maxFee(NaN);
|
||||
assert.strictEqual(transaction.tx_json.Fee, void(0));
|
||||
assert(!transaction._setLastLedger);
|
||||
assert(!transaction._setMaxFee);
|
||||
|
||||
transaction.maxFee(1000);
|
||||
assert.strictEqual(transaction.tx_json.Fee, '1000');
|
||||
assert.strictEqual(transaction._maxFee, 1000);
|
||||
assert.strictEqual(transaction._setMaxFee, true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user