From 2d272c7b3cb732328df92bcd808a6db006e48940 Mon Sep 17 00:00:00 2001 From: pp449 Date: Sun, 9 Apr 2023 21:28:55 +0900 Subject: [PATCH] =?UTF-8?q?Reactor:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=9D=B4=EB=A6=84=20index.test.tsx=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FooterTab/{FooterTab.test.tsx => index.test.tsx} | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename src/components/FooterTab/{FooterTab.test.tsx => index.test.tsx} (96%) diff --git a/src/components/FooterTab/FooterTab.test.tsx b/src/components/FooterTab/index.test.tsx similarity index 96% rename from src/components/FooterTab/FooterTab.test.tsx rename to src/components/FooterTab/index.test.tsx index d64e2d3f..1bd77578 100644 --- a/src/components/FooterTab/FooterTab.test.tsx +++ b/src/components/FooterTab/index.test.tsx @@ -28,11 +28,10 @@ describe('하단 탭 아이콘 클릭 테스트', () => { const { location } = window; window.location = { ...location, href: '' }; + const urls = ['/map', '/', '/my']; icons.forEach(async (icon, index) => { await userEvent.click(icon); - const urls = ['/map', '/', '/my']; - expect(window.location.href).toBe(urls[index]); });