mirror of
https://github.com/docker/build-push-action.git
synced 2024-11-09 10:03:35 -05:00
38b45804b5
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
16 lines
462 B
TypeScript
16 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
|
|
});
|
|
});
|
|
});
|