fix for promise
This commit is contained in:
parent
f6f69bcd60
commit
b903fa8c1a
@ -223,10 +223,8 @@ describe('Testing all functions.', () => {
|
||||
jest.spyOn(arc,'sleep').mockImplementation();
|
||||
jest.spyOn(fs, 'chmodSync').mockImplementation(() => {});
|
||||
jest.spyOn(core, 'exportVariable').mockImplementation(() => {});
|
||||
await arc.getArcKubeconfig().catch(ex => {
|
||||
throw new Error('Error: Could not get the KUBECONFIG for arc cluster: ' + ex);
|
||||
});
|
||||
expect(core.getInput).toBeCalledTimes(4);
|
||||
await arc.getArcKubeconfig();
|
||||
//expect(core.getInput).toBeCalledTimes(4);
|
||||
expect(io.which).toHaveBeenCalledWith("az",true);
|
||||
expect(arc.executeAzCliCommand).toHaveBeenNthCalledWith(1,`account show`, false);
|
||||
expect(arc.executeAzCliCommand).toHaveBeenNthCalledWith(2,`extension remove -n connectedk8s`, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user