From 01bc135c59915e217b07732587dde97369c4f134 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 12 Jan 2023 11:45:56 -0500 Subject: [PATCH] Fix lint Signed-off-by: Sebastian Malton --- src/main/__test__/lens-proxy.test.ts | 2 +- src/main/lens-proxy/handle-request-for.injectable.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);