mirror of
https://github.com/Azure/setup-helm.git
synced 2025-11-07 13:06:56 +00:00
Testing async test
This commit is contained in:
parent
6fb220634c
commit
822c0c23d0
1 changed files with 8 additions and 0 deletions
|
|
@ -44,6 +44,14 @@ describe('run.ts', () => {
|
||||||
expect(os.type).toBeCalled();
|
expect(os.type).toBeCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('getLatestHelmVersion() - return the latest version of HELM', async () => {
|
||||||
|
try{
|
||||||
|
expect(await run.getLatestHelmVersion()).toBe("v3.8.0");
|
||||||
|
} catch (e){
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
test('getStableHelmVersion() - download stable version file, read version and return it', async () => {
|
test('getStableHelmVersion() - download stable version file, read version and return it', async () => {
|
||||||
jest.spyOn(toolCache, 'downloadTool').mockResolvedValue('pathToTool');
|
jest.spyOn(toolCache, 'downloadTool').mockResolvedValue('pathToTool');
|
||||||
const response = JSON.stringify(
|
const response = JSON.stringify(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue