Skip to content

Commit 11573f3

Browse files
committed
✅ Add test for appereance section
1 parent 5ad079d commit 11573f3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

x-pack/plugins/lens/public/visualizations/partition/layer_settings.test.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)