From b0fad192e8183ab24441eb67eb177128c07c2c65 Mon Sep 17 00:00:00 2001 From: Will Stone <654103+will-stone@users.noreply.github.com> Date: Thu, 17 Oct 2024 20:29:44 +0100 Subject: [PATCH] test: remove unused code --- src/renderers/picker/components/organisms/apps.test.tsx | 2 -- src/renderers/picker/components/organisms/url-bar.test.tsx | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/renderers/picker/components/organisms/apps.test.tsx b/src/renderers/picker/components/organisms/apps.test.tsx index 829b8914..f94c2ca7 100644 --- a/src/renderers/picker/components/organisms/apps.test.tsx +++ b/src/renderers/picker/components/organisms/apps.test.tsx @@ -17,8 +17,6 @@ import { clickedApp, pressedKey } from '../../state/actions.js' import Wrapper from '../_bootstrap.js' beforeAll(() => { - globalThis.window ??= Object.create(globalThis) - Object.defineProperty(globalThis.navigator, 'keyboard', { value: { getLayoutMap: jest diff --git a/src/renderers/picker/components/organisms/url-bar.test.tsx b/src/renderers/picker/components/organisms/url-bar.test.tsx index 3d4df2d5..fd5f2ff4 100644 --- a/src/renderers/picker/components/organisms/url-bar.test.tsx +++ b/src/renderers/picker/components/organisms/url-bar.test.tsx @@ -9,8 +9,6 @@ import { Channel } from '../../../../shared/state/channels.js' import Wrapper from '../_bootstrap.js' beforeAll(() => { - globalThis.window ??= Object.create(globalThis) - Object.defineProperty(globalThis.navigator, 'keyboard', { value: { getLayoutMap: jest