mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2025-12-06 16:15:57 +00:00
chore: enhances tests.
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
This commit is contained in:
parent
45ec8bfee0
commit
ae5138eb8b
4 changed files with 219 additions and 202 deletions
|
|
@ -37,7 +37,7 @@ async function fetchReleases () {
|
|||
});
|
||||
|
||||
if (!resp.ok) {
|
||||
throw Error('failed fetching releases');
|
||||
throw new Error('failed fetching releases');
|
||||
}
|
||||
|
||||
const releasesMeta = await resp.json();
|
||||
|
|
@ -94,6 +94,5 @@ async function getRelease (version, fetchReleasesFn = fetchReleases) {
|
|||
// See: https://github.com/hashicorp/setup-terraform/blob/e192cfcbae6c6ed207c277ed7624131996c9bf13/lib/setup-terraform.js#L15
|
||||
module.exports = {
|
||||
getRelease,
|
||||
Release,
|
||||
Build
|
||||
Release
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue