diff --git a/starsky/starsky/clientapp/src/components/molecules/color-class-select/color-class-select-keyboard.spec.tsx b/starsky/starsky/clientapp/src/components/molecules/color-class-select/color-class-select-keyboard.spec.tsx index a84904f726..e79726c6ad 100644 --- a/starsky/starsky/clientapp/src/components/molecules/color-class-select/color-class-select-keyboard.spec.tsx +++ b/starsky/starsky/clientapp/src/components/molecules/color-class-select/color-class-select-keyboard.spec.tsx @@ -112,7 +112,7 @@ describe("ColorClassSelectKeyboard", () => { .spyOn(ColorClassUpdateSingle, "ColorClassUpdateSingle") .mockImplementationOnce((_p1, _p2, _p3, _p4, setIsError) => { setIsError("true"); - return { Update: jest.fn() } as any; + return { Update: jest.fn() } as unknown as ColorClassUpdateSingle.ColorClassUpdateSingle; }); const component = render( @@ -152,7 +152,7 @@ describe("ColorClassSelectKeyboard", () => { .spyOn(ColorClassUpdateSingle, "ColorClassUpdateSingle") .mockImplementationOnce((_p1, _p2, _p3, _p4, _p5, _p6, setCurrentColorClass) => { setCurrentColorClass(1); - return { Update: jest.fn() } as any; + return { Update: jest.fn() } as unknown as ColorClassUpdateSingle.ColorClassUpdateSingle; }); const component = render( diff --git a/starsky/starsky/clientapp/src/components/molecules/color-class-select/color-class-select.spec.tsx b/starsky/starsky/clientapp/src/components/molecules/color-class-select/color-class-select.spec.tsx index 38efbc80ea..4118eac56d 100644 --- a/starsky/starsky/clientapp/src/components/molecules/color-class-select/color-class-select.spec.tsx +++ b/starsky/starsky/clientapp/src/components/molecules/color-class-select/color-class-select.spec.tsx @@ -182,7 +182,7 @@ describe("ColorClassSelect", () => { .spyOn(ColorClassUpdateSingle, "ColorClassUpdateSingle") .mockImplementationOnce((_p1, _p2, _p3, _p4, setIsError) => { setIsError("true"); - return { Update: jest.fn() } as any; + return { Update: jest.fn() } as unknown as ColorClassUpdateSingle.ColorClassUpdateSingle; }); const component = render( diff --git a/starsky/starsky/clientapp/src/components/molecules/health-check-for-updates/health-check-for-updates.spec.tsx b/starsky/starsky/clientapp/src/components/molecules/health-check-for-updates/health-check-for-updates.spec.tsx index 4729a9cdb5..37cf5ef851 100644 --- a/starsky/starsky/clientapp/src/components/molecules/health-check-for-updates/health-check-for-updates.spec.tsx +++ b/starsky/starsky/clientapp/src/components/molecules/health-check-for-updates/health-check-for-updates.spec.tsx @@ -149,7 +149,7 @@ describe("HealthCheckForUpdates", () => { it("There a no links in the Notification when using electron", () => { // This is the difference - (window as any).isElectron = true; + (window as unknown as { isElectron: boolean }).isElectron = true; const mockGetIConnectionDefault = { statusCode: 202, @@ -173,7 +173,7 @@ describe("HealthCheckForUpdates", () => { expect(useFetchSpy).toHaveBeenCalled(); component.unmount(); - (window as any).isElectron = null; + (window as unknown as { isElectron: null }).isElectron = null; }); }); }); diff --git a/starsky/starsky/clientapp/src/components/molecules/health-check-for-updates/health-check-for-updates.stories.tsx b/starsky/starsky/clientapp/src/components/molecules/health-check-for-updates/health-check-for-updates.stories.tsx index 4e760ea721..31113b5b40 100644 --- a/starsky/starsky/clientapp/src/components/molecules/health-check-for-updates/health-check-for-updates.stories.tsx +++ b/starsky/starsky/clientapp/src/components/molecules/health-check-for-updates/health-check-for-updates.stories.tsx @@ -5,7 +5,7 @@ export default { }; export const Default = () => { - (window as any).isElectron = undefined; + (window as unknown as { isElectron: unknown }).isElectron = undefined; return ( <>