1
0
Fork 0
mirror of https://github.com/docker/setup-buildx-action.git synced 2024-11-25 13:01:57 +00:00
setup-buildx-action/__tests__/github.test.ts

17 lines
534 B
TypeScript
Raw Normal View History

import {describe, expect, it} from '@jest/globals';
import * as github from '../src/github';
describe('github', () => {
it('returns latest buildx GitHub release', async () => {
const release = await github.getRelease('latest');
expect(release).not.toBeNull();
expect(release?.tag_name).not.toEqual('');
});
it('returns v0.2.2 buildx GitHub release', async () => {
const release = await github.getRelease('v0.2.2');
expect(release).not.toBeNull();
expect(release?.tag_name).toEqual('v0.2.2');
});
});