ghaction-upx/__tests__/installer.test.ts

16 lines
479 B
TypeScript
Raw Permalink Normal View History

import {describe, expect, it} from '@jest/globals';
import * as fs from 'fs';
2020-01-08 14:26:34 -07:00
import * as installer from '../src/installer';
describe('installer', () => {
2020-05-07 04:11:19 -06:00
it('acquires v3.95 version of UPX', async () => {
const upx = await installer.getUPX('v3.95');
2020-01-08 14:26:34 -07:00
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);
});