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

fix navigation-to-kubernetes-preferences.test.ts

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-04-21 13:12:27 -04:00
parent d32d4d172b
commit 52488b7188
2 changed files with 17 additions and 23 deletions

View File

@ -105,7 +105,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle"
>
Theme
</div>
<div
class="Select theme-lens css-b62m3t-container"
@ -190,7 +190,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle"
>
Extension Install Registry
</div>
<div
class="Select theme-lens css-b62m3t-container"
@ -270,16 +270,11 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="mt-4 mb-5 leading-relaxed"
>
This setting is to change the registry URL for installing extensions by name.
If you are unable to access the default registry (
https://registry.npmjs.org
)
you can change it in your
If you are unable to access the default registry (https://registry.npmjs.org) you can change it in your
<b>
.npmrc
</b>
 file or in the input below.
file or in the input below.
</p>
<div
class="Input theme round black disabled invalid"
@ -309,7 +304,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle"
>
Start-up
</div>
<label
class="Switch"
@ -330,7 +325,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle"
>
Update Channel
</div>
<div
class="Select theme-lens css-b62m3t-container"
@ -415,7 +410,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle"
>
Locale Timezone
</div>
<div
class="Select theme-lens css-b62m3t-container"
@ -639,7 +634,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle"
>
Kubectl binary download
</div>
<label
class="Switch"
@ -657,7 +652,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle"
>
Download mirror
</div>
<div
class="Select theme-lens Select--is-disabled css-3iigni-container"
@ -740,7 +735,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle"
>
Directory for binaries
</div>
<div
class="Input theme round black disabled"
@ -772,7 +767,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle"
>
Path to kubectl binary
</div>
<div
class="Input theme round black"
@ -817,7 +812,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
class="SubTitle pt-5"
>
Synced Items
</div>
<div
class="notice mt-3"

View File

@ -7,9 +7,8 @@ import type { ApplicationBuilder } from "../../renderer/components/test-utils/ge
import { getApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
import userStoreInjectable from "../../common/user-store/user-store.injectable";
import type { UserStore } from "../../common/user-store";
import themeStoreInjectable from "../../renderer/themes/store.injectable";
import type { ThemeStore } from "../../renderer/themes/store";
import { observable } from "mobx";
import ipcRendererInjectable from "../../renderer/app-paths/get-value-from-registered-channel/ipc-renderer/ipc-renderer.injectable";
describe("preferences - navigation to kubernetes preferences", () => {
let applicationBuilder: ApplicationBuilder;
@ -24,10 +23,10 @@ describe("preferences - navigation to kubernetes preferences", () => {
} as unknown as UserStore;
rendererDi.override(userStoreInjectable, () => userStoreStub);
const themeStoreStub = ({ themeOptions: [] }) as unknown as ThemeStore;
rendererDi.override(themeStoreInjectable, () => themeStoreStub);
rendererDi.override(ipcRendererInjectable, () => ({
on: jest.fn(),
invoke: jest.fn(), // TODO: replace with proper mocking via the IPC bridge
} as never));
});
});