mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-04-21 17:47:22 +00:00
refactor(extension-podman-docker-context): reuse global mock for @podman-desktop/api
avoid defining custom mock for @podman-desktop/api, reuse the global mock related to #14493 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
parent
42a73716b1
commit
c361cf74e7
1 changed files with 0 additions and 15 deletions
|
|
@ -28,21 +28,6 @@ import {
|
|||
toEndpoint,
|
||||
} from './docker-context-synchronizer.js';
|
||||
|
||||
vi.mock('@podman-desktop/api', async () => {
|
||||
return {
|
||||
env: {
|
||||
isLinux: false,
|
||||
isWindows: false,
|
||||
isMac: false,
|
||||
},
|
||||
provider: {
|
||||
onDidUpdateContainerConnection: vi.fn(),
|
||||
onDidRegisterContainerConnection: vi.fn(),
|
||||
getContainerConnections: vi.fn(() => []),
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
const DOCKER_CONNECTION = {
|
||||
providerId: 'docker',
|
||||
connection: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue