From 822c0c23d0f473d72841e22a112dfbcfdfe07662 Mon Sep 17 00:00:00 2001 From: Asa Gayle Date: Tue, 25 Jan 2022 10:50:30 -0500 Subject: [PATCH] Testing async test --- __tests__/run.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/__tests__/run.test.ts b/__tests__/run.test.ts index 5b09802..1e4de4d 100644 --- a/__tests__/run.test.ts +++ b/__tests__/run.test.ts @@ -44,6 +44,14 @@ describe('run.ts', () => { expect(os.type).toBeCalled(); }); + test('getLatestHelmVersion() - return the latest version of HELM', async () => { + try{ + expect(await run.getLatestHelmVersion()).toBe("v3.8.0"); + } catch (e){ + return e; + } + }); + test('getStableHelmVersion() - download stable version file, read version and return it', async () => { jest.spyOn(toolCache, 'downloadTool').mockResolvedValue('pathToTool'); const response = JSON.stringify(