diff --git a/src/main/__test__/lens-proxy.test.ts b/src/main/__test__/lens-proxy.test.ts index 20af162f17..2269d2dd65 100644 --- a/src/main/__test__/lens-proxy.test.ts +++ b/src/main/__test__/lens-proxy.test.ts @@ -3,7 +3,7 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ -import { isLongRunningRequest } from "../lens-proxy/lens-proxy"; +import { isLongRunningRequest } from "../lens-proxy/handle-request-for.injectable"; describe("isLongRunningRequest", () => { it("returns true on watches", () => { diff --git a/src/main/lens-proxy/handle-request-for.injectable.ts b/src/main/lens-proxy/handle-request-for.injectable.ts index 0eff5110ce..7382460141 100644 --- a/src/main/lens-proxy/handle-request-for.injectable.ts +++ b/src/main/lens-proxy/handle-request-for.injectable.ts @@ -15,7 +15,7 @@ import type HttpProxyServer from "http-proxy"; const watchParam = "watch"; const followParam = "follow"; -const isLongRunningRequest = (reqUrl: string) => { +export const isLongRunningRequest = (reqUrl: string) => { const url = new URL(reqUrl, "http://localhost"); return getBoolean(url.searchParams, watchParam) || getBoolean(url.searchParams, followParam);