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

Fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-11-30 11:39:56 -05:00
parent 23345e1ef6
commit 0af861f54f
4 changed files with 154 additions and 30 deletions

View File

@ -1295,7 +1295,11 @@ exports[`New Upgrade Helm Chart Dock Tab given a namespace is selected when navi
<div
class="TableCell namespace"
>
my-second-namespace
<a
class="filterNamespace"
>
my-second-namespace
</a>
</div>
<div
class="TableCell chart"
@ -2048,7 +2052,11 @@ exports[`New Upgrade Helm Chart Dock Tab given a namespace is selected when navi
<div
class="TableCell namespace"
>
my-second-namespace
<a
class="filterNamespace"
>
my-second-namespace
</a>
</div>
<div
class="TableCell chart"
@ -2855,7 +2863,11 @@ exports[`New Upgrade Helm Chart Dock Tab given a namespace is selected when navi
<div
class="TableCell namespace"
>
my-second-namespace
<a
class="filterNamespace"
>
my-second-namespace
</a>
</div>
<div
class="TableCell chart"
@ -3698,7 +3710,11 @@ exports[`New Upgrade Helm Chart Dock Tab given a namespace is selected when navi
<div
class="TableCell namespace"
>
my-second-namespace
<a
class="filterNamespace"
>
my-second-namespace
</a>
</div>
<div
class="TableCell chart"
@ -4681,7 +4697,11 @@ exports[`New Upgrade Helm Chart Dock Tab given a namespace is selected when navi
<div
class="TableCell namespace"
>
my-second-namespace
<a
class="filterNamespace"
>
my-second-namespace
</a>
</div>
<div
class="TableCell chart"
@ -5666,7 +5686,11 @@ exports[`New Upgrade Helm Chart Dock Tab given a namespace is selected when navi
<div
class="TableCell namespace"
>
my-second-namespace
<a
class="filterNamespace"
>
my-second-namespace
</a>
</div>
<div
class="TableCell chart"

View File

@ -2122,7 +2122,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -2204,7 +2208,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -3038,7 +3046,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -3120,7 +3132,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -4015,7 +4031,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -4097,7 +4117,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -4992,7 +5016,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -5074,7 +5102,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -6214,7 +6246,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -6296,7 +6332,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -7436,7 +7476,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -7518,7 +7562,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -10754,7 +10802,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -10836,7 +10888,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -11976,7 +12032,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -12058,7 +12118,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -12953,7 +13017,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -13035,7 +13103,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -13933,7 +14005,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -14015,7 +14091,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -14849,7 +14929,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -14931,7 +15015,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"
@ -15826,7 +15914,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-namespace
<a
class="filterNamespace"
>
some-namespace
</a>
</div>
<div
class="TableCell chart"
@ -15908,7 +16000,11 @@ exports[`showing details for helm release given application is started when navi
<div
class="TableCell namespace"
>
some-other-namespace
<a
class="filterNamespace"
>
some-other-namespace
</a>
</div>
<div
class="TableCell chart"

View File

@ -8,6 +8,7 @@ import { SecretDetails } from "../secret-details";
import { Secret, SecretType } from "../../../../common/k8s-api/endpoints";
import { getDiForUnitTesting } from "../../../getDiForUnitTesting";
import { renderFor } from "../../test-utils/renderFor";
import storesAndApisCanBeCreatedInjectable from "../../../stores-apis-can-be-created.injectable";
jest.mock("../../kube-object-meta/kube-object-meta", () => ({
KubeObjectMeta: () => null,
@ -18,6 +19,8 @@ describe("SecretDetails tests", () => {
const di = getDiForUnitTesting({ doGeneralOverrides: true });
const render = renderFor(di);
di.override(storesAndApisCanBeCreatedInjectable, () => true);
const secret = new Secret({
apiVersion: "v1",
kind: "secret",

View File

@ -499,6 +499,7 @@ export const getApplicationBuilder = () => {
api: windowDi.inject(namespaceApiInjectable),
items: namespaceItems,
selectNamespaces: () => {},
selectSingle: () => {},
getByPath: () => undefined,
pickOnlySelected: () => [],
isSelectedAll: () => false,