mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-30 03:44:21 +01:00
chore: enhances tests.
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
This commit is contained in:
4 files changed
+219
-202
No files matched your search
+2
-3
@@ -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
|
||||
};
|
||||
Reference in new issue
Block a user