"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const hw_transport_mocker_1 = require("@ledgerhq/hw-transport-mocker");
const getBitcoinLikeInfo_1 = __importDefault(require("../../hw/getBitcoinLikeInfo"));
test("1.5.5", async () => {
    const t = await (0, hw_transport_mocker_1.openTransportReplayer)(hw_transport_mocker_1.RecordStore.fromString(`
      => e016000000
      <= 000000050107426974636f696e034254439000
    `));
    const res = await (0, getBitcoinLikeInfo_1.default)(t);
    expect(res).toMatchObject({
        P2PKH: 0,
        P2SH: 5,
    });
});
test("1.2", async () => {
    const t = await (0, hw_transport_mocker_1.openTransportReplayer)(hw_transport_mocker_1.RecordStore.fromString(`
      => e016000000
      <= 000507426974636f696e034254439000
    `));
    const res = await (0, getBitcoinLikeInfo_1.default)(t);
    expect(res).toBe(null);
});
//# sourceMappingURL=getBitcoinLikeInfo.js.map