From 56cf68d36e46c950cbd4e02a9b52101d444d61e8 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 13 Oct 2022 08:28:02 -0400 Subject: [PATCH] Fix lint Signed-off-by: Sebastian Malton --- .../local-shell-session/techincal.test.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/shell-session/local-shell-session/techincal.test.ts b/src/main/shell-session/local-shell-session/techincal.test.ts index fbe2ccaea3..8855d8b2ee 100644 --- a/src/main/shell-session/local-shell-session/techincal.test.ts +++ b/src/main/shell-session/local-shell-session/techincal.test.ts @@ -12,10 +12,9 @@ import { getDiForUnitTesting } from "../../getDiForUnitTesting"; import createKubectlInjectable from "../../kubectl/create-kubectl.injectable"; import type { Kubectl } from "../../kubectl/kubectl"; 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 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", () => { let di: DiContainer; @@ -32,7 +31,6 @@ describe("technical unit tests for local shell sessions", () => { }); describe("when on windows", () => { - let openLocalShellSession: OpenShellSession; let spawnPtyMock: jest.MockedFunction; beforeEach(() => { @@ -45,8 +43,6 @@ describe("technical unit tests for local shell sessions", () => { binDir: async () => "/some-kubectl-binary-dir", getBundledPath: () => "/some-bundled-kubectl-path", }) as Partial as Kubectl); - - openLocalShellSession = di.inject(openLocalShellSessionInjectable); }); 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: { getProxyKubeconfigPath: async () => "/some-proxy-kubeconfig", preferences: {}, @@ -84,6 +80,8 @@ describe("technical unit tests for local shell sessions", () => { tabId: "my-tab-id", websocket: new WebSocket(null), }); + + await session.open(); }); }); });