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

Updating getStableHelmVersion test

This commit is contained in:
Asa Gayle 2022-01-13 17:40:30 -05:00
parent db3e6df453
commit 7b95bcc15b

View file

@ -68,9 +68,9 @@ describe('run.ts', () => {
jest.spyOn(toolCache, 'downloadTool').mockRejectedValue('Unable to download'); jest.spyOn(toolCache, 'downloadTool').mockRejectedValue('Unable to download');
jest.spyOn(core, 'warning').mockImplementation(); jest.spyOn(core, 'warning').mockImplementation();
expect(await run.getStableHelmVersion()).toBe('v3.2.1'); expect(await run.getStableHelmVersion()).toBe('v3.7.2');
expect(toolCache.downloadTool).toBeCalled(); expect(toolCache.downloadTool).toBeCalled();
expect(core.warning).toBeCalledWith("Cannot get the latest Helm info from https://api.github.com/repos/helm/helm/releases. Error Unable to download. Using default Helm version v3.2.1."); expect(core.warning).toBeCalledWith("Cannot get the latest Helm info from https://api.github.com/repos/helm/helm/releases. Error Unable to download. Using default Helm version v3.7.2.");
}); });
test('walkSync() - return path to the all files matching fileToFind in dir', () => { test('walkSync() - return path to the all files matching fileToFind in dir', () => {