From d54da4f5ad3594ce90725abbe1755a5c248472d6 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Thu, 24 Feb 2022 07:09:57 +0200 Subject: [PATCH] windows test fix Signed-off-by: Jari Kolehmainen --- src/main/__test__/kube-auth-proxy.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/__test__/kube-auth-proxy.test.ts b/src/main/__test__/kube-auth-proxy.test.ts index c68e8ff0b8..4c006ecec9 100644 --- a/src/main/__test__/kube-auth-proxy.test.ts +++ b/src/main/__test__/kube-auth-proxy.test.ts @@ -195,7 +195,7 @@ describe("kube auth proxy tests", () => { return mockedCP.stdout; }); mockSpawn.mockImplementationOnce((command: string): ChildProcess => { - expect(path.basename(command)).toBe("lens-k8s-proxy"); + expect(path.basename(command).split(".")[0]).toBe("lens-k8s-proxy"); return mockedCP; });