From d3723af27a8c9b09a0f7358ba34cb33eb96d05e2 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 21 Apr 2022 13:22:41 -0400 Subject: [PATCH] fix navigation-to-extension-specific-preferences.test.tsx Signed-off-by: Sebastian Malton --- ...tension-specific-preferences.test.tsx.snap | 40 +++++++------------ ...to-extension-specific-preferences.test.tsx | 11 +++-- 2 files changed, 20 insertions(+), 31 deletions(-) diff --git a/src/behaviours/preferences/__snapshots__/navigation-to-extension-specific-preferences.test.tsx.snap b/src/behaviours/preferences/__snapshots__/navigation-to-extension-specific-preferences.test.tsx.snap index dbf45087b1..202ac3ca01 100644 --- a/src/behaviours/preferences/__snapshots__/navigation-to-extension-specific-preferences.test.tsx.snap +++ b/src/behaviours/preferences/__snapshots__/navigation-to-extension-specific-preferences.test.tsx.snap @@ -105,7 +105,7 @@ exports[`preferences - navigation to extension specific preferences given in pre class="SubTitle" > Theme - +
Extension Install Registry - +
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 .npmrc -  file or in the input below. + file or in the input below.

Start-up - +
Locale Timezone - +
Theme - +
Extension Install Registry - +
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 .npmrc -  file or in the input below. + file or in the input below.

Start-up - +
Locale Timezone - +
Some preference item - +
{ let applicationBuilder: ApplicationBuilder; @@ -25,10 +24,10 @@ describe("preferences - navigation to extension specific 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)); }); });