From 92ff81074f3b1733ef5f5aea34d512d30f9043a0 Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Wed, 28 Sep 2022 11:08:35 +0200 Subject: [PATCH] Fix unit-tests --- __tests__/setup-dotnet.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/__tests__/setup-dotnet.test.ts b/__tests__/setup-dotnet.test.ts index 2b3df16..ac99415 100644 --- a/__tests__/setup-dotnet.test.ts +++ b/__tests__/setup-dotnet.test.ts @@ -22,6 +22,7 @@ const tempDir = path.join(__dirname, 'runner', 'temp2'); describe('setup-dotnet tests', () => { let getMultilineInputSpy = jest.spyOn(core, 'getMultilineInput'); + let setOutputSpy = jest.spyOn(core, 'setOutput'); beforeAll(async () => { process.env.RUNNER_TOOL_CACHE = toolDir; @@ -66,8 +67,6 @@ describe('setup-dotnet tests', () => { it('Sets output with the installed version', async () => { const versions = ['3.1.201', '6.0.401']; - let setOutputSpy = jest.spyOn(core, 'getMultilineInput'); - getMultilineInputSpy.mockImplementation(() => { return versions; });