ghaction-upx/__tests__/installer.test.ts
CrazyMax b7511689c6
update dev dependencies and workflow (#168)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-24 20:30:15 +02:00

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);
});