Skip to content

Commit 0b3a191

Browse files
Fix: Remove unused test code on tools panel. (#67589)
Co-authored-by: jorgefilipecosta <[email protected]> Co-authored-by: Mamaduka <[email protected]>
1 parent 09b2897 commit 0b3a191

File tree

1 file changed

+0
-17
lines changed
  • packages/components/src/tools-panel/test

1 file changed

+0
-17
lines changed

packages/components/src/tools-panel/test/index.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ const renderWrappedItemInPanel = () => {
154154
const renderPanel = () => {
155155
return render(
156156
<ToolsPanel { ...defaultProps }>
157-
{ false && <div>Hidden</div> }
158157
<ToolsPanelItem { ...controlProps }>
159158
<div>Example control</div>
160159
</ToolsPanelItem>
@@ -236,22 +235,6 @@ describe( 'ToolsPanel', () => {
236235
it( 'should not render panel menu when there are no panel items', () => {
237236
render(
238237
<ToolsPanel { ...defaultProps }>
239-
{ false && (
240-
<ToolsPanelItem
241-
label="Not rendered 1"
242-
hasValue={ () => false }
243-
>
244-
Should not show
245-
</ToolsPanelItem>
246-
) }
247-
{ false && (
248-
<ToolsPanelItem
249-
label="Not rendered 2"
250-
hasValue={ () => false }
251-
>
252-
Not shown either
253-
</ToolsPanelItem>
254-
) }
255238
<span>Visible but insignificant</span>
256239
</ToolsPanel>
257240
);

0 commit comments

Comments
 (0)