Add tests

This commit is contained in:
CrazyMax
2019-09-22 07:17:07 +02:00
committed by GitHub
parent 79b6548141
commit bb450e4e69
29 changed files with 5069 additions and 30 deletions
+14
View File
@@ -0,0 +1,14 @@
import fs = require('fs');
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');
expect(fs.existsSync(goreleaser)).toBe(true);
}, 100000);
it('acquires latest version of GoReleaser', async () => {
const goreleaser = await installer.getGoReleaser('latest');
expect(fs.existsSync(goreleaser)).toBe(true);
}, 100000);
});