mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-25 11:46:09 -07:00
15 lines
426 B
TypeScript
15 lines
426 B
TypeScript
|
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');
|
||
|
expect(fs.existsSync(upx)).toBe(true);
|
||
|
}, 100000);
|
||
|
|
||
|
it('acquires latest version of UPX', async () => {
|
||
|
const upx = await installer.getUPX('latest');
|
||
|
expect(fs.existsSync(upx)).toBe(true);
|
||
|
}, 100000);
|
||
|
});
|