Skip to content

Commit

Permalink
Fix: Remove unused test code on tools panel. (#67589)
Browse files Browse the repository at this point in the history
Co-authored-by: jorgefilipecosta <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2024
1 parent 09b2897 commit 0b3a191
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/components/src/tools-panel/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ const renderWrappedItemInPanel = () => {
const renderPanel = () => {
return render(
<ToolsPanel { ...defaultProps }>
{ false && <div>Hidden</div> }
<ToolsPanelItem { ...controlProps }>
<div>Example control</div>
</ToolsPanelItem>
Expand Down Expand Up @@ -236,22 +235,6 @@ describe( 'ToolsPanel', () => {
it( 'should not render panel menu when there are no panel items', () => {
render(
<ToolsPanel { ...defaultProps }>
{ false && (
<ToolsPanelItem
label="Not rendered 1"
hasValue={ () => false }
>
Should not show
</ToolsPanelItem>
) }
{ false && (
<ToolsPanelItem
label="Not rendered 2"
hasValue={ () => false }
>
Not shown either
</ToolsPanelItem>
) }
<span>Visible but insignificant</span>
</ToolsPanel>
);
Expand Down

0 comments on commit 0b3a191

Please sign in to comment.