mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
cd5ddd93c3
commit
6dd41c13ba
@ -83,7 +83,6 @@ describe("kube auth proxy tests", () => {
|
||||
di.override(kubectlDownloadingNormalizedArchInjectable, () => "amd64");
|
||||
di.override(normalizedPlatformInjectable, () => "darwin");
|
||||
|
||||
const createKubeAuthProxy = di.inject(createKubeAuthProxyInjectable);
|
||||
const addCluster = di.inject(addClusterInjectable);
|
||||
|
||||
cluster = addCluster({
|
||||
@ -91,7 +90,7 @@ describe("kube auth proxy tests", () => {
|
||||
kubeConfigPath: "/minikube-config.yml",
|
||||
contextName: "minikube",
|
||||
});
|
||||
kubeAuthProxy = createKubeAuthProxy(cluster, {});
|
||||
kubeAuthProxy = di.inject(createKubeAuthProxyInjectable, cluster)({});
|
||||
});
|
||||
|
||||
it("calling exit multiple times shouldn't throw", async () => {
|
||||
|
||||
@ -97,8 +97,8 @@ describe("kubeconfig-sync.source tests", () => {
|
||||
const models = configToModels(config, "/bar");
|
||||
|
||||
expect(models.length).toBe(1);
|
||||
expect(models[0][0].contextName).toBe("context-name");
|
||||
expect(models[0][0].kubeConfigPath).toBe("/bar");
|
||||
expect(models[0].contextName).toBe("context-name");
|
||||
expect(models[0].kubeConfigPath).toBe("/bar");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user