"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const errors_1 = require("@ledgerhq/errors");
const errors_2 = require("@ledgerhq/errors");
test("DeviceHalted", () => {
    const error = new errors_1.DeviceHalted();
    expect(error).toBeInstanceOf(errors_1.DeviceHalted);
    const blob = (0, errors_2.serializeError)(error);
    expect(blob).toMatchObject({
        name: "DeviceHalted",
    });
    const des = (0, errors_2.deserializeError)(blob);
    expect(des).toBeInstanceOf(errors_1.DeviceHalted);
});
test("DeviceInOSUExpected", () => {
    expect((0, errors_2.deserializeError)({
        name: "DeviceInOSUExpected",
    })).toBeInstanceOf(errors_1.DeviceInOSUExpected);
});
//# sourceMappingURL=errors.js.map