mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
fix encoding problems
This commit is contained in:
@@ -50,10 +50,10 @@ describe("Hash256", function () {
|
||||
});
|
||||
|
||||
describe("Currency", function () {
|
||||
test("Will have a null iso() for dodgy XRP ", function () {
|
||||
const bad = Currency.from("0000000000000000000000005852500000000000");
|
||||
expect(bad.iso()).toBeUndefined();
|
||||
expect(bad.isNative()).toBe(false);
|
||||
test("Will throw an error for dodgy XRP ", function () {
|
||||
expect(() =>
|
||||
Currency.from("0000000000000000000000005852500000000000")
|
||||
).toThrow();
|
||||
});
|
||||
test("Currency with lowercase letters decode to hex", () => {
|
||||
expect(Currency.from("xRp").toJSON()).toBe(
|
||||
|
||||
Reference in New Issue
Block a user