mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix technical test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
256ed2a1b8
commit
c002483236
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import type { DiContainer } from "@ogre-tools/injectable";
|
import type { DiContainer } from "@ogre-tools/injectable";
|
||||||
import WebSocket from "ws";
|
import type WebSocket from "ws";
|
||||||
import directoryForUserDataInjectable from "../../../common/app-paths/directory-for-user-data/directory-for-user-data.injectable";
|
import directoryForUserDataInjectable from "../../../common/app-paths/directory-for-user-data/directory-for-user-data.injectable";
|
||||||
import type { Cluster } from "../../../common/cluster/cluster";
|
import type { Cluster } from "../../../common/cluster/cluster";
|
||||||
import pathExistsSyncInjectable from "../../../common/fs/path-exists-sync.injectable";
|
import pathExistsSyncInjectable from "../../../common/fs/path-exists-sync.injectable";
|
||||||
@ -86,13 +86,18 @@ describe("technical unit tests for local shell sessions", () => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const websocket = {
|
||||||
|
on: jest.fn(() => websocket),
|
||||||
|
once: jest.fn(() => websocket),
|
||||||
|
} as Partial<WebSocket> as WebSocket;
|
||||||
|
|
||||||
await openLocalShellSession({
|
await openLocalShellSession({
|
||||||
cluster: {
|
cluster: {
|
||||||
getProxyKubeconfigPath: async () => "/some-proxy-kubeconfig",
|
getProxyKubeconfigPath: async () => "/some-proxy-kubeconfig",
|
||||||
preferences: {},
|
preferences: {},
|
||||||
} as Partial<Cluster> as Cluster,
|
} as Partial<Cluster> as Cluster,
|
||||||
tabId: "my-tab-id",
|
tabId: "my-tab-id",
|
||||||
websocket: new WebSocket(""),
|
websocket,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user