actions-toolkit/__tests__/docker.test.ts
CrazyMax aae4a2d7bc
Some improvements
- Use classes
- Split buildx/builder modules
- Additional tests

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-01-23 10:07:14 +01:00

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