mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-23 19:56:09 +08:00
aae4a2d7bc
- Use classes - Split buildx/builder modules - Additional tests Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
18 lines
460 B
TypeScript
18 lines
460 B
TypeScript
import {describe, expect, it, jest} from '@jest/globals';
|
|
import * as exec from '@actions/exec';
|
|
|
|
import {Docker} from '../src/docker';
|
|
|
|
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
|
|
});
|
|
});
|
|
});
|