This commit is contained in:
Atharva Mulmuley
2021-06-03 14:01:27 +05:30
parent f6361247fd
commit 8896b7e8e2

View File

@ -223,7 +223,7 @@ describe('Testing all functions.', () => {
jest.spyOn(arc,'sleep').mockImplementation(); jest.spyOn(arc,'sleep').mockImplementation();
jest.spyOn(fs, 'chmodSync').mockImplementation(() => {}); jest.spyOn(fs, 'chmodSync').mockImplementation(() => {});
jest.spyOn(core, 'exportVariable').mockImplementation(() => {}); jest.spyOn(core, 'exportVariable').mockImplementation(() => {});
expect(await arc.getArcKubeconfig()); await arc.getArcKubeconfig();
expect(core.getInput).toBeCalledTimes(4); expect(core.getInput).toBeCalledTimes(4);
expect(io.which).toHaveBeenCalledWith("az",true); expect(io.which).toHaveBeenCalledWith("az",true);
expect(arc.executeAzCliCommand).toHaveBeenNthCalledWith(1,`account show`, false); expect(arc.executeAzCliCommand).toHaveBeenNthCalledWith(1,`account show`, false);