From 00326f24f89b9f19b1cb023361ea8db79eab940f Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Fri, 19 Apr 2024 01:12:33 +0200 Subject: [PATCH] fix broken tests These tests were rendering a `Debug` element that didn't render any DOM nodes. Adding `as="div"` ensures that we are forwarding the ref correctly. --- .../src/components/disclosure/disclosure.test.tsx | 2 +- .../@headlessui-react/src/components/popover/popover.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@headlessui-react/src/components/disclosure/disclosure.test.tsx b/packages/@headlessui-react/src/components/disclosure/disclosure.test.tsx index 36a5896ddd..2c7aeb29df 100644 --- a/packages/@headlessui-react/src/components/disclosure/disclosure.test.tsx +++ b/packages/@headlessui-react/src/components/disclosure/disclosure.test.tsx @@ -597,7 +597,7 @@ describe('Composition', () => { - + diff --git a/packages/@headlessui-react/src/components/popover/popover.test.tsx b/packages/@headlessui-react/src/components/popover/popover.test.tsx index 6fff12f3a4..d11610a53e 100644 --- a/packages/@headlessui-react/src/components/popover/popover.test.tsx +++ b/packages/@headlessui-react/src/components/popover/popover.test.tsx @@ -977,7 +977,7 @@ describe('Composition', () => { - +