Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove aptos unit test for function assertions #8839

Merged
merged 14 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
semeano marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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 = {
Expand Down
Loading