Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-01-19 09:37:26 -05:00
1 parent 9fadceb5a3
commit 01bc135c59
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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", () => {
@@ -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);