mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-11-24 11:16:08 -07:00
18 lines
532 B
TypeScript
18 lines
532 B
TypeScript
import * as github from '../src/github';
|
|
|
|
describe('github', () => {
|
|
it('returns latest UPX GitHub release', async () => {
|
|
const release = await github.getRelease('latest');
|
|
console.log(release);
|
|
expect(release).not.toBeNull();
|
|
expect(release?.tag_name).not.toEqual('');
|
|
});
|
|
|
|
it('returns v3.96 GoReleaser GitHub release', async () => {
|
|
const release = await github.getRelease('v3.96');
|
|
console.log(release);
|
|
expect(release).not.toBeNull();
|
|
expect(release?.tag_name).toEqual('v3.96');
|
|
});
|
|
});
|