mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +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';
|
||||
findAllVersionSpy.mockImplementation(() => [versionExpected]);
|
||||
|
||||
let toolPath = path.normalize(`/cache/node/${versionExpected}/x64`);
|
||||
const toolPath = path.normalize(`/cache/node/${versionExpected}/x64`);
|
||||
findSpy.mockImplementation(version => toolPath);
|
||||
|
||||
await main.run();
|
||||
|
||||
expect(cnSpy).toHaveBeenCalledWith(
|
||||
`::add-path::${toolPath}/bin${osm.EOL}`
|
||||
`::add-path::${toolPath}${path.sep}bin${osm.EOL}`
|
||||
);
|
||||
|
||||
expect(dlSpy).not.toHaveBeenCalled();
|
||||
|
|
Loading…
Add table
Reference in a new issue