From 595c035c5e580e0a279cc87e3578d81fc6b985cf Mon Sep 17 00:00:00 2001 From: Chance Strickland Date: Sat, 10 Jul 2021 13:04:55 -0700 Subject: [PATCH] fix router tests --- packages/utils/__tests__/polymorphic.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/utils/__tests__/polymorphic.test.tsx b/packages/utils/__tests__/polymorphic.test.tsx index 6ac95de70..d9e5f8fa3 100644 --- a/packages/utils/__tests__/polymorphic.test.tsx +++ b/packages/utils/__tests__/polymorphic.test.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { render } from "@testing-library/react"; import type * as Polymorphic from "@reach/utils/polymorphic"; import type { RenderResult } from "@testing-library/react"; -import { Link as RouterLink } from "react-router-dom"; +import { Link as RouterLink, BrowserRouter } from "react-router-dom"; interface ButtonProps { isDisabled?: boolean; @@ -82,7 +82,7 @@ export function Test() { const buttonAsLinkRef = React.useRef>(null); return ( - <> + {/* Button accepts ref */}