run prettier on all packages

This commit is contained in:
Greg Weisbrod
2021-11-12 02:41:28 -05:00
parent 3b523d7e37
commit afd6aadaf1
51 changed files with 2086 additions and 2062 deletions

View File

@@ -1,38 +1,38 @@
const { encode, decode } = require("../dist");
const { encode, decode } = require('../dist')
let json = {
Account: "rrrrrrrrrrrrrrrrrrrrrhoLvTp",
Account: 'rrrrrrrrrrrrrrrrrrrrrhoLvTp',
Sequence: 0,
Fee: "0",
SigningPubKey: "",
Signature: "",
};
Fee: '0',
SigningPubKey: '',
Signature: '',
}
let json_blank_acct = {
Account: "",
Account: '',
Sequence: 0,
Fee: "0",
SigningPubKey: "",
Signature: "",
};
Fee: '0',
SigningPubKey: '',
Signature: '',
}
let binary =
"24000000006840000000000000007300760081140000000000000000000000000000000000000000";
'24000000006840000000000000007300760081140000000000000000000000000000000000000000'
describe("Can encode Pseudo Transactions", () => {
test("Correctly encodes Pseudo Transaciton", () => {
expect(encode(json)).toEqual(binary);
});
describe('Can encode Pseudo Transactions', () => {
test('Correctly encodes Pseudo Transaciton', () => {
expect(encode(json)).toEqual(binary)
})
test("Can decode account objects", () => {
expect(decode(encode(json))).toEqual(json);
});
test('Can decode account objects', () => {
expect(decode(encode(json))).toEqual(json)
})
test("Blank AccountID is ACCOUNT_ZERO", () => {
expect(encode(json_blank_acct)).toEqual(binary);
});
test('Blank AccountID is ACCOUNT_ZERO', () => {
expect(encode(json_blank_acct)).toEqual(binary)
})
test("Decodes Blank AccountID", () => {
expect(decode(encode(json_blank_acct))).toEqual(json);
});
});
test('Decodes Blank AccountID', () => {
expect(decode(encode(json_blank_acct))).toEqual(json)
})
})