mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 05:05:48 +00:00
fix test for amount min
This commit is contained in:
@@ -1225,7 +1225,7 @@ describe('Amount', function() {
|
|||||||
|
|
||||||
it('from_json minimum IOU', function() {
|
it('from_json minimum IOU', function() {
|
||||||
const amt = Amount.from_json('-1e-81/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh');
|
const amt = Amount.from_json('-1e-81/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh');
|
||||||
assert.strictEqual(amt.to_text(), '-1000000000000000e-96');
|
assert.strictEqual(amt.to_text(), '1000000000000000e-96');
|
||||||
assert.strictEqual(amt.to_text(), Amount.min_value);
|
assert.strictEqual(amt.to_text(), Amount.min_value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user