From 30c6debc89d9ddaa36f15abf265afdad37a130d5 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 24 Mar 2023 13:14:57 +0100 Subject: [PATCH] Continue --- src/Calendar/Navigation.spec.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Calendar/Navigation.spec.tsx b/src/Calendar/Navigation.spec.tsx index b27cbb93..09d7a9fa 100644 --- a/src/Calendar/Navigation.spec.tsx +++ b/src/Calendar/Navigation.spec.tsx @@ -400,7 +400,7 @@ describe('Navigation', () => { const arrows = container.querySelectorAll('button.react-calendar__navigation__arrow'); - const [prev2, prev] = arrows; + const [prev2, prev] = arrows as unknown as [HTMLButtonElement, HTMLButtonElement]; expect(prev2).toBeDisabled(); expect(prev).toBeDisabled(); @@ -413,7 +413,7 @@ describe('Navigation', () => { const arrows = container.querySelectorAll('button.react-calendar__navigation__arrow'); - const [prev2, prev] = arrows; + const [prev2, prev] = arrows as unknown as [HTMLButtonElement, HTMLButtonElement]; expect(prev2).toBeDisabled(); expect(prev).toBeDisabled(); @@ -485,7 +485,7 @@ describe('Navigation', () => { const arrows = container.querySelectorAll('button.react-calendar__navigation__arrow'); - const [prev2, prev] = arrows; + const [prev2, prev] = arrows as unknown as [HTMLButtonElement, HTMLButtonElement]; expect(prev2).toBeDisabled(); expect(prev).toBeDisabled();