From e8b22d0c2106dcf2732009838117902d9f3d1bd0 Mon Sep 17 00:00:00 2001 From: Atharva Mulmuley Date: Thu, 3 Jun 2021 13:12:24 +0530 Subject: [PATCH] fix for promise --- __tests__/run.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/run.test.ts b/__tests__/run.test.ts index 7ca7ca9b..15b27d72 100644 --- a/__tests__/run.test.ts +++ b/__tests__/run.test.ts @@ -223,7 +223,7 @@ describe('Testing all functions.', () => { jest.spyOn(arc,'sleep').mockImplementation(); jest.spyOn(fs, 'chmodSync').mockImplementation(() => {}); jest.spyOn(core, 'exportVariable').mockImplementation(() => {}); - expect(await arc.getArcKubeconfig()); + await arc.getArcKubeconfig(); expect(core.getInput).toBeCalledTimes(4); expect(io.which).toHaveBeenCalledWith("az",true); expect(arc.executeAzCliCommand).toHaveBeenNthCalledWith(1,`account show`, false);