"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const updateFirmware_1 = require("./updateFirmware");
test("getFlashMcuOrBootloaderDetails", () => {
    // MCU Update
    expect((0, updateFirmware_1.getFlashMcuOrBootloaderDetails)("1.91.0", "1.91.0")).toEqual({
        bootloaderVersion: "1.91.0",
        isMcuUpdate: true,
    });
    // Bootloader Update
    expect((0, updateFirmware_1.getFlashMcuOrBootloaderDetails)("1.90.1", "1.91.0")).toEqual({
        bootloaderVersion: "1.91.0",
        isMcuUpdate: false,
    });
    // Bootloader version majMin formatting
    expect((0, updateFirmware_1.getFlashMcuOrBootloaderDetails)("1.90.1", "1.91.0.whatever-it-doesnt-matter")).toEqual({
        bootloaderVersion: "1.91.0",
        isMcuUpdate: false,
    });
});
//# sourceMappingURL=updateFirmware.test.js.map