@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
31 lines • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
require("../../__tests__/test-helpers/setup");
const bridge_1 = require("../../__tests__/test-helpers/bridge");
const index_1 = require("@ledgerhq/coin-filecoin/test/index");
// FIXME: Disabled due to creationDate timing issues
describe.skip("filecoin integration", () => {
(0, bridge_1.testBridge)(index_1.dataset);
});
// describe("estimateMaxSpendable", () => {
// test("it should failed on invalid recipient", async () => {
// const accounts = dataset.currencies["filecoin"].accounts || [];
// const accountData = accounts[0];
// const account = fromAccountRaw({
// ...accountData.raw,
// id: encodeAccountId({
// ...decodeAccountId(accountData.raw.id),
// type: dataset.implementations[0],
// }),
// });
// const accountBridge = getAccountBridge(account);
// const estimate = async () => {
// await accountBridge.estimateMaxSpendable({
// account,
// transaction: { recipient: "notavalidrecipient" },
// });
// };
// await expect(estimate).rejects.toThrowError(new InvalidAddress());
// });
// });
//# sourceMappingURL=bridge.integration.test.js.map