UNPKG

@pontem/wallet-adapter-plugin

Version:
53 lines (40 loc) 1.3 kB
import { PontemWallet } from "../index"; /* Basic tests to make sure basic variables and functions are defined on the wallet */ describe("PontemWallet", () => { const wallet = new PontemWallet(); test("defines name", () => { expect(typeof wallet.name).toBe("string"); }); test("defines url", () => { expect(typeof wallet.url).toBe("string"); }); test("defines icon", () => { expect(typeof wallet.icon).toBe("string"); }); test("defines connect()", () => { expect(typeof wallet.connect).toBe("function"); }); test("defines account()", () => { expect(typeof wallet.account).toBe("function"); }); test("defines disconnect()", () => { expect(typeof wallet.disconnect).toBe("function"); }); test("defines signAndSubmitTransaction()", () => { expect(typeof wallet.signAndSubmitTransaction).toBe("function"); }); test("defines signMessage()", () => { expect(typeof wallet.signMessage).toBe("function"); }); test("defines onNetworkChange()", () => { expect(typeof wallet.onNetworkChange).toBe("function"); }); test("defines onAccountChange()", () => { expect(typeof wallet.onAccountChange).toBe("function"); }); test("defines network()", () => { expect(typeof wallet.network).toBe("function"); }); });