mirror of
				https://github.com/docker/setup-buildx-action.git
				synced 2025-11-04 22:54:19 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			462 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			462 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import {describe, expect, it, jest} from '@jest/globals';
 | 
						|
import * as docker from '../src/docker';
 | 
						|
import * as exec from '@actions/exec';
 | 
						|
 | 
						|
describe('isAvailable', () => {
 | 
						|
  it('cli', () => {
 | 
						|
    const execSpy = jest.spyOn(exec, 'getExecOutput');
 | 
						|
    docker.isAvailable();
 | 
						|
 | 
						|
    // eslint-disable-next-line jest/no-standalone-expect
 | 
						|
    expect(execSpy).toHaveBeenCalledWith(`docker`, undefined, {
 | 
						|
      silent: true,
 | 
						|
      ignoreReturnCode: true
 | 
						|
    });
 | 
						|
  });
 | 
						|
});
 |