From 4584a7f935b5da037562454f3d20a5a4e9b6d836 Mon Sep 17 00:00:00 2001 From: Martijn Hols Date: Wed, 2 Dec 2020 18:08:01 +0100 Subject: [PATCH] Fix test --- __tests__/restore.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/__tests__/restore.test.ts b/__tests__/restore.test.ts index c6d99f2..6f29fd0 100644 --- a/__tests__/restore.test.ts +++ b/__tests__/restore.test.ts @@ -27,6 +27,13 @@ beforeAll(() => { return actualUtils.getInputAsArray(name, options); } ); + + jest.spyOn(actionUtils, "getInputAsBoolean").mockImplementation( + (name, options) => { + const actualUtils = jest.requireActual("../src/utils/actionUtils"); + return actualUtils.getInputAsBoolean(name, options); + } + ); }); beforeEach(() => {