File tree Expand file tree Collapse file tree
x-pack/plugins/lens/public/visualizations/partition Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,12 +25,15 @@ describe('layer settings', () => {
2525 } ) ;
2626
2727 const layerId = 'layer-id' ;
28- const props : VisualizationLayerSettingsProps < PieVisualizationState > = {
28+ const props : VisualizationLayerSettingsProps < PieVisualizationState > & {
29+ section : 'data' | 'appereance' ;
30+ } = {
2931 setState : jest . fn ( ) ,
3032 layerId,
3133 state : getState ( false ) ,
3234 frame : { } as FramePublicAPI ,
3335 panelRef : { } as React . MutableRefObject < HTMLDivElement | null > ,
36+ section : 'data' ,
3437 } ;
3538
3639 it ( 'toggles multiple metrics' , ( ) => {
@@ -90,5 +93,9 @@ describe('layer settings', () => {
9093 ) . isEmptyRender ( )
9194 ) . toBeTruthy ( ) ;
9295 } ) ;
96+
97+ test ( 'should not render anything for the appereance section' , ( ) => {
98+ expect ( shallow ( < LayerSettings { ...props } section = "appereance" /> ) . isEmptyRender ( ) ) ;
99+ } ) ;
93100 } ) ;
94101} ) ;
You can’t perform that action at this time.
0 commit comments