mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
fcec618e5b
commit
56cf68d36e
@ -12,10 +12,9 @@ import { getDiForUnitTesting } from "../../getDiForUnitTesting";
|
|||||||
import createKubectlInjectable from "../../kubectl/create-kubectl.injectable";
|
import createKubectlInjectable from "../../kubectl/create-kubectl.injectable";
|
||||||
import type { Kubectl } from "../../kubectl/kubectl";
|
import type { Kubectl } from "../../kubectl/kubectl";
|
||||||
import buildVersionInjectable from "../../vars/build-version/build-version.injectable";
|
import buildVersionInjectable from "../../vars/build-version/build-version.injectable";
|
||||||
import type { OpenShellSession } from "../create-shell-session.injectable";
|
|
||||||
import type { SpawnPty } from "../spawn-pty.injectable";
|
import type { SpawnPty } from "../spawn-pty.injectable";
|
||||||
import spawnPtyInjectable from "../spawn-pty.injectable";
|
import spawnPtyInjectable from "../spawn-pty.injectable";
|
||||||
import openLocalShellSessionInjectable from "./open.injectable";
|
import localShellSessionInjectable from "./local-shell-session.injectable";
|
||||||
|
|
||||||
describe("technical unit tests for local shell sessions", () => {
|
describe("technical unit tests for local shell sessions", () => {
|
||||||
let di: DiContainer;
|
let di: DiContainer;
|
||||||
@ -32,7 +31,6 @@ describe("technical unit tests for local shell sessions", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("when on windows", () => {
|
describe("when on windows", () => {
|
||||||
let openLocalShellSession: OpenShellSession;
|
|
||||||
let spawnPtyMock: jest.MockedFunction<SpawnPty>;
|
let spawnPtyMock: jest.MockedFunction<SpawnPty>;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@ -45,8 +43,6 @@ describe("technical unit tests for local shell sessions", () => {
|
|||||||
binDir: async () => "/some-kubectl-binary-dir",
|
binDir: async () => "/some-kubectl-binary-dir",
|
||||||
getBundledPath: () => "/some-bundled-kubectl-path",
|
getBundledPath: () => "/some-bundled-kubectl-path",
|
||||||
}) as Partial<Kubectl> as Kubectl);
|
}) as Partial<Kubectl> as Kubectl);
|
||||||
|
|
||||||
openLocalShellSession = di.inject(openLocalShellSessionInjectable);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("when opening a local shell session", () => {
|
describe("when opening a local shell session", () => {
|
||||||
@ -76,7 +72,7 @@ describe("technical unit tests for local shell sessions", () => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
await openLocalShellSession({
|
const session = di.inject(localShellSessionInjectable, {
|
||||||
cluster: {
|
cluster: {
|
||||||
getProxyKubeconfigPath: async () => "/some-proxy-kubeconfig",
|
getProxyKubeconfigPath: async () => "/some-proxy-kubeconfig",
|
||||||
preferences: {},
|
preferences: {},
|
||||||
@ -84,6 +80,8 @@ describe("technical unit tests for local shell sessions", () => {
|
|||||||
tabId: "my-tab-id",
|
tabId: "my-tab-id",
|
||||||
websocket: new WebSocket(null),
|
websocket: new WebSocket(null),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await session.open();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user