mirror of
				https://github.moeyy.xyz/https://github.com/docker/setup-buildx-action
				synced 2025-11-01 00:16:38 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			534 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			534 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 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');
 | |
|   });
 | |
| });
 | 
