mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-22 10:26:08 -07:00
17 lines
472 B
TypeScript
17 lines
472 B
TypeScript
import fs = require('fs');
|
|
import * as installer from '../src/installer';
|
|
|
|
describe('installer', () => {
|
|
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);
|
|
});
|