mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-24 11:16:08 -07:00
b7511689c6
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
16 lines
479 B
TypeScript
16 lines
479 B
TypeScript
import {describe, expect, it} from '@jest/globals';
|
|
import * as fs from 'fs';
|
|
import * as installer from '../src/installer';
|
|
|
|
describe('installer', () => {
|
|
it('acquires v3.95 version of UPX', async () => {
|
|
const upx = await installer.getUPX('v3.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);
|
|
});
|