ghaction-upx/__tests__/github.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

17 lines
532 B
TypeScript

import {describe, expect, it} from '@jest/globals';
import * as github from '../src/github';
describe('github', () => {
it('returns latest UPX GitHub release', async () => {
const release = await github.getRelease('latest');
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');
expect(release).not.toBeNull();
expect(release?.tag_name).toEqual('v3.96');
});
});