4
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2025-11-07 21:16:57 +00:00

Fixed downloadHelm test

This commit is contained in:
Asa Gayle 2022-01-26 15:01:39 -05:00
parent a277a45bd2
commit 499b0f3066

View file

@ -125,7 +125,7 @@ describe('run.ts', () => {
return { isDirectory: () => isDirectory } as fs.Stats; return { isDirectory: () => isDirectory } as fs.Stats;
}); });
expect(await run.downloadHelm(null)).toBe(path.join('pathToCachedDir', 'helm.exe')); expect(await run.downloadHelm("v4.0.0")).toBe(path.join('pathToCachedDir', 'helm.exe'));
expect(toolCache.find).toBeCalledWith('helm', 'v4.0.0'); expect(toolCache.find).toBeCalledWith('helm', 'v4.0.0');
expect(toolCache.downloadTool).toBeCalledWith('https://get.helm.sh/helm-v4.0.0-windows-amd64.zip'); expect(toolCache.downloadTool).toBeCalledWith('https://get.helm.sh/helm-v4.0.0-windows-amd64.zip');
expect(fs.chmodSync).toBeCalledWith('pathToTool', '777'); expect(fs.chmodSync).toBeCalledWith('pathToTool', '777');