mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 19:11:21 +00:00
test: fix typing in inputs.test.ts
This commit is contained in:
parent
f1bf9f4a5d
commit
dc5be9d408
@ -134,7 +134,10 @@ describe("get action inputs", () => {
|
||||
const { getInputs } = await import("./inputs.js");
|
||||
const core = await import("@actions/core");
|
||||
|
||||
const booleanInputs = { "run-build": true, ...testCase.booleanInputs };
|
||||
const booleanInputs: Record<string, boolean> = {
|
||||
"run-build": true,
|
||||
...testCase.booleanInputs,
|
||||
};
|
||||
jest.mocked(core.getBooleanInput).mockImplementation((name) => {
|
||||
return booleanInputs[name] ?? false;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user