Adding Forgejo support (#23)

Signed-off-by: Janos Bonic <86970079+janosdebugs@users.noreply.github.com>
Co-authored-by: Bence Santha <bence@santha.eu>
This commit is contained in:
JanosandBence Santha authored and GitHub committed 2024-01-30 19:49:40 +01:00
1 parent 24b9f144af
commit da3271e0a2
6 files changed
+36 -17

No files matched your search

+2 -2
View File
@@ -197,7 +197,7 @@ describe('getRelease', () => {
]
)('happy path: getRelease(\'%s\') -> \'%s\'', async (input, wantVersion) => {
const want = mockFetchReleases().find(el => el.version === wantVersion);
const gotRelease = await pkg.getRelease(input, mockFetchReleases);
const gotRelease = await pkg.getRelease(input, '', mockFetchReleases);
expect(gotRelease).toEqual(want);
});
@@ -210,7 +210,7 @@ describe('getRelease', () => {
]
)('unhappy path: getRelease(\'%s\') -> throw Error(\'%s\')', async (input, wantErrorMessage, mockFetchReleasesFn) => {
try {
await pkg.getRelease(input, mockFetchReleasesFn);
await pkg.getRelease(input, '', mockFetchReleasesFn);
expect(true).toBe(false);
} catch (e) {
expect(e.message).toBe(wantErrorMessage);