added await
This commit is contained in:
parent
0a49d3ae32
commit
754b6cda98
@ -204,7 +204,7 @@ describe('Testing all functions.', () => {
|
|||||||
jest.spyOn(core, 'getInput').mockImplementation((inputName, options) => {
|
jest.spyOn(core, 'getInput').mockImplementation((inputName, options) => {
|
||||||
if (inputName == 'cluster-type') return 'arc';
|
if (inputName == 'cluster-type') return 'arc';
|
||||||
});
|
});
|
||||||
expect(run.run());
|
expect(await run.run());
|
||||||
expect(arc.getArcKubeconfig).toBeCalled();
|
expect(arc.getArcKubeconfig).toBeCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -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(arc.getArcKubeconfig());
|
expect(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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user