1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-01-09 10:59:35 -05:00
parent 2f43d242c4
commit 14f50a3f58
2 changed files with 2 additions and 20 deletions

View File

@ -1,19 +0,0 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getGlobalOverride } from "../test-utils/get-global-override";
import lensProxyCertificateInjectable from "./lens-proxy-certificate.injectable";
export default getGlobalOverride(lensProxyCertificateInjectable, () => {
return {
get: () => ({
public: "<public-data>",
private: "<private-data>",
cert: "<ca-data>",
}),
set: () => {},
};
});

View File

@ -2,7 +2,8 @@
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import type { RequestChannel } from "./request-channel-listener-injection-token";
import type { RequestChannel } from "./request-channel";
export const getRequestChannel = <Request, Response>(id: string): RequestChannel<Request, Response> => ({
id,