mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2025-12-07 05:27:15 -07:00
Initial commit
This commit is contained in:
14
__tests__/installer.test.ts
Normal file
14
__tests__/installer.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user