From 8a4b2f2bf56c7009db8672cdd609ed152881bfc5 Mon Sep 17 00:00:00 2001 From: Jake Moxey Date: Thu, 13 Aug 2020 10:40:44 +1000 Subject: [PATCH] Fix warnings in tests --- packages/bumbag/src/Icon/__tests__/Icon.test.tsx | 2 +- .../src/Icon/__tests__/__snapshots__/Icon.test.tsx.snap | 6 +++--- packages/bumbag/src/Rating/Rating.tsx | 5 +---- packages/bumbag/src/Tooltip/__tests__/Tooltip.test.tsx | 2 +- .../Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap | 4 ++-- 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/packages/bumbag/src/Icon/__tests__/Icon.test.tsx b/packages/bumbag/src/Icon/__tests__/Icon.test.tsx index 674ca8529..43bfb692a 100644 --- a/packages/bumbag/src/Icon/__tests__/Icon.test.tsx +++ b/packages/bumbag/src/Icon/__tests__/Icon.test.tsx @@ -73,7 +73,7 @@ describe('composition', () => { describe('as', () => { it('should render correctly', () => { const { container } = render( - + Hello world ); diff --git a/packages/bumbag/src/Icon/__tests__/__snapshots__/Icon.test.tsx.snap b/packages/bumbag/src/Icon/__tests__/__snapshots__/Icon.test.tsx.snap index a4fc5f9a2..9c7e1c87c 100644 --- a/packages/bumbag/src/Icon/__tests__/__snapshots__/Icon.test.tsx.snap +++ b/packages/bumbag/src/Icon/__tests__/__snapshots__/Icon.test.tsx.snap @@ -23,18 +23,18 @@ exports[`composition as should render correctly 1`] = ` width: 1em; } - + `; exports[`composition hook should return with Icon props 1`] = ` diff --git a/packages/bumbag/src/Rating/Rating.tsx b/packages/bumbag/src/Rating/Rating.tsx index e89785b79..40a6045bf 100644 --- a/packages/bumbag/src/Rating/Rating.tsx +++ b/packages/bumbag/src/Rating/Rating.tsx @@ -74,12 +74,9 @@ const useProps = createHook( overrides, role: 'radiogroup', children: times(items ? items.length : maxValue, (index) => ( - + {(props) => ( - /* - // @ts-ignore */ { describe('as', () => { it('should render correctly', () => { const { container } = render( - + Hello world ); diff --git a/packages/bumbag/src/Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap b/packages/bumbag/src/Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap index 0cbd6665c..de27c7849 100644 --- a/packages/bumbag/src/Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +++ b/packages/bumbag/src/Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap @@ -16,7 +16,7 @@ exports[`composition as should render correctly 1`] = ` outline: none; } -

+

Hello world
-

+
`; exports[`composition hook should return with Tooltip props 1`] = `