text: // @flow
  import {
    createTransportReplayer,
    RecordStore
  } from "@ledgerhq/hw-transport-mocker";
  import getBitcoinLikeInfo from "../../hw/getBitcoinLikeInfo";
  
  test("1.5.5", async () => {
    const Transport = createTransportReplayer(
      RecordStore.fromString(`
        => e016000000
        <= 000000050107426974636f696e034254439000
      `)
    );
    const t = await Transport.create();
    const res = await getBitcoinLikeInfo(t);
    expect(res).toMatchObject({ P2PKH: 0, P2SH: 5 });
  });
  
  test("1.2", async () => {
    const Transport = createTransportReplayer(
      RecordStore.fromString(`
        => e016000000
        <= 000507426974636f696e034254439000
      `)
    );
    const t = await Transport.create();
    const res = await getBitcoinLikeInfo(t);
    expect(res).toBe(null);
  });
  