Fixes tests for release.js (#14)

This commit is contained in:
Dmitry Kisler authored and GitHub committed 2023-10-26 16:07:06 +01:00
1 parent abd9f2b70f
commit 8767493626
3 files changed
+5 -36

No files matched your search

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