Skip to content

Commit

Permalink
Fix: Remove unused test code on tools panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Dec 2, 2024
1 parent 8d80471 commit 87f7ce7
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 87f7ce7

Please sign in to comment.