mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2025-12-31 15:02:19 +00:00
fix: fixes test to avoid mock github API call
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
This commit is contained in:
parent
abd9f2b70f
commit
f6bca00835
1 changed files with 2 additions and 2 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