From e745beeddc948db1bc803a4bd775b76374597340 Mon Sep 17 00:00:00 2001 From: Minionguyjpro Date: Sat, 12 Oct 2024 19:34:45 +0200 Subject: [PATCH] Update main.test.js --- __tests__/main.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/main.test.js b/__tests__/main.test.js index 5838d17..e639eb9 100644 --- a/__tests__/main.test.js +++ b/__tests__/main.test.js @@ -1,7 +1,7 @@ -// main.test.js +// index.test.js const core = require("@actions/core"); const fs = require("fs"); -const main = require("../src/main"); +const index = require("../src/index"); // Mocking fs.promises for the test jest.mock("fs", () => { @@ -25,7 +25,7 @@ describe("Inno Setup Action", () => { it("should execute Inno Setup command on Windows with existing workspace", () => { process.platform = "win32"; - main(); + index(); expect(core.getInput).toHaveBeenCalledTimes(2); expect(fs.existsSync).toHaveBeenCalled();