From ac509eb358c5111b832f5db2bad6e3af7ac0be79 Mon Sep 17 00:00:00 2001 From: Jitender Pal Singh Date: Mon, 13 Jul 2026 15:59:52 +0530 Subject: [PATCH] update test cases --- __tests__/official-installer.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/official-installer.test.ts b/__tests__/official-installer.test.ts index dcb4528e..c30a70ce 100644 --- a/__tests__/official-installer.test.ts +++ b/__tests__/official-installer.test.ts @@ -255,7 +255,7 @@ describe('setup-node', () => { return `some/${cmd}/path`; }); getExecOutputSpy.mockImplementation(async (cmd: string) => ({ - stdout: cmd === 'node' ? `v${resolvedVersion}` : '1.0.0', + stdout: cmd === 'node' ? `v${resolvedVersion}` : cmd === 'npm' ? '11.12.1' : '4.17.1', stderr: '', exitCode: 0 })); @@ -971,7 +971,7 @@ describe('setup-node', () => { const toolPath = path.normalize('/cache/node/12.16.1/x64'); findSpy.mockReturnValue(toolPath); getExecOutputSpy.mockImplementation(async () => ({ - stdout: 'v10.0.0\n', + stdout: 'v22.22.3\n', stderr: '', exitCode: 0 }));