docker: fix context command

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-02-25 16:40:35 +01:00
parent 1cc5fc87fb
commit 6fe7d54029
2 changed files with 7 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ describe('context', () => {
await Docker.context().catch(() => {
// noop
});
expect(execSpy).toHaveBeenCalledWith(`docker`, ['context', 'show'], {
expect(execSpy).toHaveBeenCalledWith(`docker`, ['context', 'inspect', '--format', '{{.Name}}'], {
ignoreReturnCode: true,
silent: true
});