Skip to content

Commit

Permalink
fix-test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Oct 24, 2024
1 parent c257667 commit 047aff1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/x-charts/src/LineChart/checkClickEvent.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('LineChart - click event', () => {
});

describe('onMarkClick', () => {
it('should add cursor="pointer" to bar elements', function test() {
it('should add cursor="pointer" to mark elements', function test() {
render(
<LineChart
{...config}
Expand Down Expand Up @@ -155,7 +155,7 @@ describe('LineChart - click event', () => {
});

describe('onAreaClick', () => {
it('should add cursor="pointer" to bar elements', function test() {
it('should add cursor="pointer" to area elements', function test() {
render(
<LineChart
{...config}
Expand Down Expand Up @@ -218,7 +218,7 @@ describe('LineChart - click event', () => {
});

describe('onLineClick', () => {
it('should add cursor="pointer" to bar elements', function test() {
it('should add cursor="pointer" to line elements', function test() {
render(
<LineChart
{...config}
Expand Down
3 changes: 0 additions & 3 deletions packages/x-charts/src/PieChart/PieArcPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
ValueWithHighlight,
useTransformData,
} from './dataTransform/useTransformData';
import { useHighlighted } from '../context';

export interface PieArcPlotSlots {
pieArc?: React.JSXElementConstructor<PieArcProps>;
Expand Down Expand Up @@ -95,7 +94,6 @@ function PieArcPlot(props: PieArcPlotProps) {
...defaultTransitionConfig,
immediate: skipAnimation,
});
const { highlightScope } = useHighlighted();

if (data.length === 0) {
return null;
Expand Down Expand Up @@ -133,7 +131,6 @@ function PieArcPlot(props: PieArcPlotProps) {
id={id}
color={item.color}
dataIndex={index}
highlightScope={highlightScope}
isFaded={item.isFaded}
isHighlighted={item.isHighlighted}
onClick={
Expand Down
2 changes: 1 addition & 1 deletion packages/x-charts/src/PieChart/checkClickEvent.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('PieChart - click event', () => {
const { render } = createRenderer();

describe('onItemClick', () => {
it('should add cursor="pointer" to bar elements', function test() {
it('should add cursor="pointer" to slice elements', function test() {
render(
<PieChart
{...config}
Expand Down

0 comments on commit 047aff1

Please sign in to comment.