Skip to content

Commit

Permalink
fix logic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
may01 committed Jan 9, 2025
1 parent 9e0949c commit a0f23a7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions libs/ledger-live-common/src/families/aptos/logic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,31 +81,25 @@ describe("Aptos logic ", () => {

describe("normalizeTransactionOptions", () => {
it("should normalize transaction options", () => {
const options: Transaction["options"] = {
const options: Transaction["estimate"] = {
maxGasAmount: "1000",
gasUnitPrice: "10",
sequenceNumber: "1",
expirationTimestampSecs: "1000000",
};

const result = normalizeTransactionOptions(options);
expect(result).toEqual(options);
});

it("should return undefined for empty values", () => {
const options: Transaction["options"] = {
const options: Transaction["estimate"] = {
maxGasAmount: "",
gasUnitPrice: "",
sequenceNumber: undefined,
expirationTimestampSecs: "1000000",
};

const result = normalizeTransactionOptions(options);
expect(result).toEqual({
maxGasAmount: undefined,
gasUnitPrice: undefined,
sequenceNumber: undefined,
expirationTimestampSecs: "1000000",
});
});
});
Expand Down

0 comments on commit a0f23a7

Please sign in to comment.