mirror of
https://github.com/actions/setup-node.git
synced 2025-04-24 20:22:13 +00:00
Fix windows test
This commit is contained in:
parent
a3c8983ccb
commit
6e2b26d097
1 changed files with 2 additions and 2 deletions
|
@ -1354,13 +1354,13 @@ describe('setup-node', () => {
|
||||||
const versionExpected = 'v20.0.0-v8-canary20221103f7e2421e91';
|
const versionExpected = 'v20.0.0-v8-canary20221103f7e2421e91';
|
||||||
findAllVersionSpy.mockImplementation(() => [versionExpected]);
|
findAllVersionSpy.mockImplementation(() => [versionExpected]);
|
||||||
|
|
||||||
let toolPath = path.normalize(`/cache/node/${versionExpected}/x64`);
|
const toolPath = path.normalize(`/cache/node/${versionExpected}/x64`);
|
||||||
findSpy.mockImplementation(version => toolPath);
|
findSpy.mockImplementation(version => toolPath);
|
||||||
|
|
||||||
await main.run();
|
await main.run();
|
||||||
|
|
||||||
expect(cnSpy).toHaveBeenCalledWith(
|
expect(cnSpy).toHaveBeenCalledWith(
|
||||||
`::add-path::${toolPath}/bin${osm.EOL}`
|
`::add-path::${toolPath}${path.sep}bin${osm.EOL}`
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(dlSpy).not.toHaveBeenCalled();
|
expect(dlSpy).not.toHaveBeenCalled();
|
||||||
|
|
Loading…
Add table
Reference in a new issue