From 4eb0027c3166b08959ee0f3715f2c40bb29d1de1 Mon Sep 17 00:00:00 2001 From: phntxx Date: Mon, 21 Jun 2021 20:29:31 +0200 Subject: [PATCH] Update tests --- src/test/components/imprint.spec.tsx | 2 ++ src/test/components/settings.spec.tsx | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/components/imprint.spec.tsx b/src/test/components/imprint.spec.tsx index 206460f..5afc709 100644 --- a/src/test/components/imprint.spec.tsx +++ b/src/test/components/imprint.spec.tsx @@ -26,6 +26,8 @@ const props: IImprintProps = { }; describe("imprint.tsx", () => { + const location: Location = window.location; + beforeEach(() => { // @ts-ignore delete window.location; diff --git a/src/test/components/settings.spec.tsx b/src/test/components/settings.spec.tsx index 7dcb7df..850eb1e 100644 --- a/src/test/components/settings.spec.tsx +++ b/src/test/components/settings.spec.tsx @@ -71,7 +71,6 @@ const propsList = [ describe("settings.tsx", () => { const location: Location = window.location; - 8; beforeEach(() => { // @ts-ignore