From a0d0dab6ce1a93b971eb1b0eec6ab9d501171beb Mon Sep 17 00:00:00 2001 From: Atharva Mulmuley Date: Thu, 3 Jun 2021 14:32:40 +0530 Subject: [PATCH] trying a fix --- __tests__/run.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/__tests__/run.test.ts b/__tests__/run.test.ts index 38596ad2..417d2fd4 100644 --- a/__tests__/run.test.ts +++ b/__tests__/run.test.ts @@ -223,7 +223,8 @@ describe('Testing all functions.', () => { jest.spyOn(arc,'sleep').mockImplementation(); jest.spyOn(fs, 'chmodSync').mockImplementation(() => {}); jest.spyOn(core, 'exportVariable').mockImplementation(() => {}); - await arc.getArcKubeconfig(); + //await arc.getArcKubeconfig(); + expect(()=>arc.getArcKubeconfig()); expect(core.getInput).toBeCalledTimes(4); expect(io.which).toHaveBeenCalledWith("az",true); expect(arc.executeAzCliCommand).toHaveBeenNthCalledWith(1,`account show`, false);