3
0
Fork 0
mirror of https://gitea.com/docker/build-push-action.git synced 2024-11-29 12:59:37 +01:00
docker-build-push/__tests__/docker.test.ts

17 lines
462 B
TypeScript
Raw Normal View History

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
});
});
});