Fixes tests for release.js (#14)

This commit is contained in:
Dmitry Kisler 2023-10-26 17:07:06 +02:00 committed by GitHub
parent abd9f2b70f
commit 8767493626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 36 deletions

View file

@ -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 []; }]
]