mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2025-12-31 15:02:19 +00:00
Fixes tests for release.js (#14)
This commit is contained in:
parent
abd9f2b70f
commit
8767493626
3 changed files with 5 additions and 36 deletions
|
|
@ -203,8 +203,8 @@ describe('getRelease', () => {
|
|||
|
||||
it.each(
|
||||
[
|
||||
['foo', 'Input version cannot be used, see semver: https://semver.org/spec/v2.0.0.html', undefined],
|
||||
['2.0', 'No matching version found', undefined],
|
||||
['foo', 'Input version cannot be used, see semver: https://semver.org/spec/v2.0.0.html', mockFetchReleases],
|
||||
['2.0', 'No matching version found', mockFetchReleases],
|
||||
['latest', 'No tofu releases found, please contact OpenTofu', async () => { return null; }],
|
||||
['latest', 'No tofu releases found, please contact OpenTofu', async () => { return []; }]
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue