chore: enhances tests.

Signed-off-by: Dmitry Kisler <admin@dkisler.com>
This commit is contained in:
Dmitry Kisler 2023-10-10 12:21:47 +02:00
parent 45ec8bfee0
commit ae5138eb8b
No known key found for this signature in database
GPG key ID: 46C0A987D58548F6
4 changed files with 219 additions and 202 deletions

5
dist/index.js vendored
View file

@ -43,7 +43,7 @@ async function fetchReleases () {
});
if (!resp.ok) {
throw Error('failed fetching releases');
throw new Error('failed fetching releases');
}
const releasesMeta = await resp.json();
@ -100,8 +100,7 @@ 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
};