1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-19 09:51:20 +01:00
Files
inno-setup/__tests__/main.test.js
2024-01-02 21:28:41 +01:00

16 lines
458 B
JavaScript

// main.test.js
const core = require("@actions/core");
const fs = require("fs");
const { main } = require("../src/main"); // Adjust the path accordingly
jest.mock("@actions/core");
describe("Inno Setup Action", () => {
it("should execute Inno Setup command on Windows with existing workspace", () => {
process.platform = "win32";
main();
expect(core.getInput).toHaveBeenCalledTimes(2);
expect(fs.existsSync).toHaveBeenCalled();
});
});