ghaction-upx/__tests__/github.test.ts

17 lines
532 B
TypeScript
Raw Permalink Normal View History

import {describe, expect, it} from '@jest/globals';
2020-05-06 14:14:50 -06:00
import * as github from '../src/github';
describe('github', () => {
2020-05-07 04:11:19 -06:00
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');
2020-05-06 14:14:50 -06:00
expect(release).not.toBeNull();
2020-05-06 14:17:35 -06:00
expect(release?.tag_name).toEqual('v3.96');
2020-05-06 14:14:50 -06:00
});
});