feat: implement (optional) semver parsing of version (#213)

This commit is contained in:
Radek Simko
2020-06-15 17:05:51 +01:00
committed by GitHub
parent de0cc32957
commit 62b67a060c
9 changed files with 1572 additions and 9 deletions
-2
View File
@@ -4,13 +4,11 @@ import * as installer from '../src/installer';
describe('installer', () => {
it('acquires v0.117.0 version of GoReleaser', async () => {
const goreleaser = await installer.getGoReleaser('v0.117.0');
console.log(goreleaser);
expect(fs.existsSync(goreleaser)).toBe(true);
}, 100000);
it('acquires latest version of GoReleaser', async () => {
const goreleaser = await installer.getGoReleaser('latest');
console.log(goreleaser);
expect(fs.existsSync(goreleaser)).toBe(true);
}, 100000);
});