mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix navigation-to-application-preferences.test.ts
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
b0b529920e
commit
1b448183f8
@ -103,7 +103,7 @@ exports[`preferences - navigation to application preferences given in some child
|
|||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
>
|
>
|
||||||
HTTP Proxy
|
HTTP Proxy
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="Input theme round black"
|
class="Input theme round black"
|
||||||
@ -139,7 +139,7 @@ exports[`preferences - navigation to application preferences given in some child
|
|||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
>
|
>
|
||||||
Certificate Trust
|
Certificate Trust
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<label
|
<label
|
||||||
class="Switch"
|
class="Switch"
|
||||||
@ -155,9 +155,9 @@ exports[`preferences - navigation to application preferences given in some child
|
|||||||
class="hint"
|
class="hint"
|
||||||
>
|
>
|
||||||
This will make Lens to trust ANY certificate authority without any validations.
|
This will make Lens to trust ANY certificate authority without any validations.
|
||||||
|
|
||||||
Needed with some corporate proxies that do certificate re-writing.
|
Needed with some corporate proxies that do certificate re-writing.
|
||||||
|
|
||||||
Does not affect cluster communications!
|
Does not affect cluster communications!
|
||||||
</small>
|
</small>
|
||||||
</section>
|
</section>
|
||||||
@ -307,7 +307,7 @@ exports[`preferences - navigation to application preferences given in some child
|
|||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
>
|
>
|
||||||
Theme
|
Theme
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens css-b62m3t-container"
|
class="Select theme-lens css-b62m3t-container"
|
||||||
@ -392,7 +392,7 @@ exports[`preferences - navigation to application preferences given in some child
|
|||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
>
|
>
|
||||||
Extension Install Registry
|
Extension Install Registry
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens css-b62m3t-container"
|
class="Select theme-lens css-b62m3t-container"
|
||||||
@ -472,16 +472,11 @@ exports[`preferences - navigation to application preferences given in some child
|
|||||||
class="mt-4 mb-5 leading-relaxed"
|
class="mt-4 mb-5 leading-relaxed"
|
||||||
>
|
>
|
||||||
This setting is to change the registry URL for installing extensions by name.
|
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>
|
<b>
|
||||||
.npmrc
|
.npmrc
|
||||||
</b>
|
</b>
|
||||||
file or in the input below.
|
file or in the input below.
|
||||||
</p>
|
</p>
|
||||||
<div
|
<div
|
||||||
class="Input theme round black disabled invalid"
|
class="Input theme round black disabled invalid"
|
||||||
@ -511,7 +506,7 @@ exports[`preferences - navigation to application preferences given in some child
|
|||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
>
|
>
|
||||||
Start-up
|
Start-up
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<label
|
<label
|
||||||
class="Switch"
|
class="Switch"
|
||||||
@ -532,7 +527,7 @@ exports[`preferences - navigation to application preferences given in some child
|
|||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
>
|
>
|
||||||
Update Channel
|
Update Channel
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens css-b62m3t-container"
|
class="Select theme-lens css-b62m3t-container"
|
||||||
@ -617,7 +612,7 @@ exports[`preferences - navigation to application preferences given in some child
|
|||||||
class="SubTitle"
|
class="SubTitle"
|
||||||
>
|
>
|
||||||
Locale Timezone
|
Locale Timezone
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="Select theme-lens css-b62m3t-container"
|
class="Select theme-lens css-b62m3t-container"
|
||||||
|
|||||||
@ -7,10 +7,8 @@ import type { ApplicationBuilder } from "../../renderer/components/test-utils/ge
|
|||||||
import { getApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
|
import { getApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
|
||||||
import userStoreInjectable from "../../common/user-store/user-store.injectable";
|
import userStoreInjectable from "../../common/user-store/user-store.injectable";
|
||||||
import type { UserStore } from "../../common/user-store";
|
import type { UserStore } from "../../common/user-store";
|
||||||
import themeStoreInjectable from "../../renderer/themes/store.injectable";
|
import navigateToProxyPreferencesInjectable from "../../common/front-end-routing/routes/preferences/proxy/navigate-to-proxy-preferences.injectable";
|
||||||
import type { ThemeStore } from "../../renderer/themes/store";
|
import ipcRendererInjectable from "../../renderer/app-paths/get-value-from-registered-channel/ipc-renderer/ipc-renderer.injectable";
|
||||||
import navigateToProxyPreferencesInjectable
|
|
||||||
from "../../common/front-end-routing/routes/preferences/proxy/navigate-to-proxy-preferences.injectable";
|
|
||||||
|
|
||||||
describe("preferences - navigation to application preferences", () => {
|
describe("preferences - navigation to application preferences", () => {
|
||||||
let applicationBuilder: ApplicationBuilder;
|
let applicationBuilder: ApplicationBuilder;
|
||||||
@ -24,10 +22,10 @@ describe("preferences - navigation to application preferences", () => {
|
|||||||
} as unknown as UserStore;
|
} as unknown as UserStore;
|
||||||
|
|
||||||
rendererDi.override(userStoreInjectable, () => userStoreStub);
|
rendererDi.override(userStoreInjectable, () => userStoreStub);
|
||||||
|
rendererDi.override(ipcRendererInjectable, () => ({
|
||||||
const themeStoreStub = ({ themeOptions: [] }) as unknown as ThemeStore;
|
on: jest.fn(),
|
||||||
|
invoke: jest.fn(), // TODO: replace with proper mocking via the IPC bridge
|
||||||
rendererDi.override(themeStoreInjectable, () => themeStoreStub);
|
} as never));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user