diff --git a/libs/ledger-live-common/src/families/aptos/LedgerAccount.test.ts b/libs/ledger-live-common/src/families/aptos/LedgerAccount.test.ts index e43582e7e7b..4a25e2420db 100644 --- a/libs/ledger-live-common/src/families/aptos/LedgerAccount.test.ts +++ b/libs/ledger-live-common/src/families/aptos/LedgerAccount.test.ts @@ -12,25 +12,15 @@ describe("LedgerAccount Test", () => { it("builds the client properly", () => { expect(LedgerAccount.fromLedgerConnection).toBeDefined(); - expect(typeof LedgerAccount.fromLedgerConnection).toBe("function"); expect(account.init).toBeDefined(); - expect(typeof account.init).toBe("function"); expect(account.toAptosAccount).toBeDefined(); - expect(typeof account.toAptosAccount).toBe("function"); expect(account.hdWalletPath).toBeDefined(); - expect(typeof account.hdWalletPath).toBe("function"); expect(account.address).toBeDefined(); - expect(typeof account.address).toBe("function"); expect(account.authKey).toBeDefined(); - expect(typeof account.authKey).toBe("function"); expect(account.pubKey).toBeDefined(); - expect(typeof account.pubKey).toBe("function"); expect(account.asyncSignBuffer).toBeDefined(); - expect(typeof account.asyncSignBuffer).toBe("function"); expect(account.asyncSignHexString).toBeDefined(); - expect(typeof account.asyncSignHexString).toBe("function"); expect(account.signTransaction).toBeDefined(); - expect(typeof account.signTransaction).toBe("function"); expect(mockedLedgerAccount).toHaveBeenCalledTimes(1); }); diff --git a/libs/ledger-live-common/src/families/aptos/bridge/js.test.ts b/libs/ledger-live-common/src/families/aptos/bridge/js.test.ts index ce24ff1fe36..fc6a1c61332 100644 --- a/libs/ledger-live-common/src/families/aptos/bridge/js.test.ts +++ b/libs/ledger-live-common/src/families/aptos/bridge/js.test.ts @@ -33,7 +33,7 @@ describe("Aptos bridge interface ", () => { }); }); - describe("accountBridge ", () => { + describe("accountBridge", () => { it("should contain all methods", () => { expect(bridge.accountBridge.estimateMaxSpendable).toBeDefined(); expect(typeof bridge.accountBridge.estimateMaxSpendable).toBe("function"); @@ -53,8 +53,15 @@ describe("Aptos bridge interface ", () => { expect(typeof bridge.accountBridge.signOperation).toBe("function"); expect(bridge.accountBridge.broadcast).toBeDefined(); expect(typeof bridge.accountBridge.broadcast).toBe("function"); + expect(bridge.currencyBridge.hydrate).toBeDefined(); + expect(typeof bridge.currencyBridge.hydrate).toBe("function"); + expect(bridge.currencyBridge.preload).toBeDefined(); + expect(typeof bridge.currencyBridge.preload).toBe("function"); + expect(bridge.currencyBridge.scanAccounts).toBeDefined(); + expect(typeof bridge.currencyBridge.scanAccounts).toBe("function"); }); }); + describe("updateTransaction", () => { it("should update the transaction with the given patch", () => { const initialTransaction = {