trying a fix
This commit is contained in:
parent
8896b7e8e2
commit
a0d0dab6ce
@ -223,7 +223,8 @@ 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(() => {});
|
||||||
await arc.getArcKubeconfig();
|
//await arc.getArcKubeconfig();
|
||||||
|
expect(()=>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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user