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
9fadceb5a3
commit
01bc135c59
@ -3,7 +3,7 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* 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", () => {
|
describe("isLongRunningRequest", () => {
|
||||||
it("returns true on watches", () => {
|
it("returns true on watches", () => {
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import type HttpProxyServer from "http-proxy";
|
|||||||
const watchParam = "watch";
|
const watchParam = "watch";
|
||||||
const followParam = "follow";
|
const followParam = "follow";
|
||||||
|
|
||||||
const isLongRunningRequest = (reqUrl: string) => {
|
export const isLongRunningRequest = (reqUrl: string) => {
|
||||||
const url = new URL(reqUrl, "http://localhost");
|
const url = new URL(reqUrl, "http://localhost");
|
||||||
|
|
||||||
return getBoolean(url.searchParams, watchParam) || getBoolean(url.searchParams, followParam);
|
return getBoolean(url.searchParams, watchParam) || getBoolean(url.searchParams, followParam);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user