UNPKG

@ledgerhq/coin-canton

Version:
13 lines (10 loc) 462 B
import { Account, AccountLike } from "@ledgerhq/types-live"; import { createTransaction } from "./createTransaction"; describe("createTransaction", () => { it("should create a 0 amount transaction", () => { expect(createTransaction({} as AccountLike<Account>).amount.toNumber()).toEqual(0); }); it("should create a transaction with canton family", () => { expect(createTransaction({} as AccountLike<Account>).family).toEqual("canton"); }); });