Cleanup code and tests

This commit is contained in:
CrazyMax
2020-05-07 12:11:19 +02:00
parent f1338960fb
commit 5cc6b8eb5b
8 changed files with 38 additions and 22 deletions

View File

@@ -2,13 +2,15 @@ import fs = require('fs');
import * as installer from '../src/installer';
describe('installer', () => {
it('acquires 3.95 version of UPX', async () => {
const upx = await installer.getUPX('3.95');
it('acquires v3.95 version of UPX', async () => {
const upx = await installer.getUPX('v3.95');
console.log(upx);
expect(fs.existsSync(upx)).toBe(true);
}, 100000);
it('acquires latest version of UPX', async () => {
const upx = await installer.getUPX('latest');
console.log(upx);
expect(fs.existsSync(upx)).toBe(true);
}, 100000);
});