From 399ab4e22cc1a2eaed2376c09b245d4098a94cff Mon Sep 17 00:00:00 2001 From: Norman Dilthey Date: Wed, 15 Feb 2023 12:17:28 +0100 Subject: [PATCH] change test to test whether the underlying dom tag is changed to span when using as prop (#2283) Test in line 105 already covers using the as tag to change the underlying dom tag to an anchor tag. Therefore we can test whether a span tag is correctly rendered for example. --- .../src/components/transitions/transition.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@headlessui-react/src/components/transitions/transition.test.tsx b/packages/@headlessui-react/src/components/transitions/transition.test.tsx index a58b821..aa384d2 100644 --- a/packages/@headlessui-react/src/components/transitions/transition.test.tsx +++ b/packages/@headlessui-react/src/components/transitions/transition.test.tsx @@ -127,15 +127,15 @@ describe('Setup API', () => { it('should be possible to change the underlying DOM tag', () => { let { container } = render( - + Children ) expect(container.firstChild).toMatchInlineSnapshot(` - + Children - + `) })