mirror of
https://github.com/actions/setup-node.git
synced 2026-07-28 00:55:46 +00:00
update test cases
This commit is contained in:
parent
f17bf47c74
commit
ac509eb358
@ -255,7 +255,7 @@ describe('setup-node', () => {
|
|||||||
return `some/${cmd}/path`;
|
return `some/${cmd}/path`;
|
||||||
});
|
});
|
||||||
getExecOutputSpy.mockImplementation(async (cmd: string) => ({
|
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: '',
|
stderr: '',
|
||||||
exitCode: 0
|
exitCode: 0
|
||||||
}));
|
}));
|
||||||
@ -971,7 +971,7 @@ describe('setup-node', () => {
|
|||||||
const toolPath = path.normalize('/cache/node/12.16.1/x64');
|
const toolPath = path.normalize('/cache/node/12.16.1/x64');
|
||||||
findSpy.mockReturnValue(toolPath);
|
findSpy.mockReturnValue(toolPath);
|
||||||
getExecOutputSpy.mockImplementation(async () => ({
|
getExecOutputSpy.mockImplementation(async () => ({
|
||||||
stdout: 'v10.0.0\n',
|
stdout: 'v22.22.3\n',
|
||||||
stderr: '',
|
stderr: '',
|
||||||
exitCode: 0
|
exitCode: 0
|
||||||
}));
|
}));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user