mirror of
https://github.com/actions/setup-node.git
synced 2026-07-28 00:05:48 +00:00
Improve formatting of test cases
This commit is contained in:
parent
ac509eb358
commit
db3687c7bd
@ -255,7 +255,12 @@ 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}` : cmd === 'npm' ? '11.12.1' : '4.17.1',
|
stdout:
|
||||||
|
cmd === 'node'
|
||||||
|
? `v${resolvedVersion}`
|
||||||
|
: cmd === 'npm'
|
||||||
|
? '11.12.1'
|
||||||
|
: '4.17.1',
|
||||||
stderr: '',
|
stderr: '',
|
||||||
exitCode: 0
|
exitCode: 0
|
||||||
}));
|
}));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user