mirror of
https://github.com/Azure/setup-helm.git
synced 2025-11-07 21:16:57 +00:00
Address review comments
This commit is contained in:
parent
a942ade5a4
commit
a785017e3d
2 changed files with 7 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ inputs:
|
|||
required: true
|
||||
default: 'latest'
|
||||
token:
|
||||
description: GitHub token. Used to be reuired to fetch the latest version
|
||||
description: GitHub token. Used to be required to fetch the latest version
|
||||
required: false
|
||||
deprecationMessage: 'GitHub token is no longer required'
|
||||
default: '${{ github.token }}'
|
||||
|
|
|
|||
|
|
@ -87,7 +87,12 @@ describe('run.ts', () => {
|
|||
})
|
||||
|
||||
test('getLatestHelmVersion() - return the latest version of HELM', async () => {
|
||||
expect(await run.getLatestHelmVersion()).toBe('v3.14.2')
|
||||
const res = {
|
||||
status: 200,
|
||||
text: async () => 'v9.99.999'
|
||||
} as Response
|
||||
global.fetch = jest.fn().mockReturnValue(res)
|
||||
expect(await run.getLatestHelmVersion()).toBe('v9.99.999')
|
||||
})
|
||||
|
||||
test('getLatestHelmVersion() - return the stable version of HELM when simulating a network error', async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue