diff --git a/packages/visx-xychart/src/components/series/private/BaseLineSeries.tsx b/packages/visx-xychart/src/components/series/private/BaseLineSeries.tsx index 9789c205a..5fa5b2989 100644 --- a/packages/visx-xychart/src/components/series/private/BaseLineSeries.tsx +++ b/packages/visx-xychart/src/components/series/private/BaseLineSeries.tsx @@ -21,7 +21,7 @@ export type BaseLineSeriesProps< /** Sets the curve factory (from @visx/curve or d3-curve) for the line generator. Defaults to curveLinear. */ curve?: LinePathProps['curve']; /** Given a datakey, returns its color. Falls back to theme color if unspecified or if a null-ish value is returned. */ - colorAccessor?: (dataKey: string) => string | undefined | null, + colorAccessor?: (dataKey: string) => string | undefined | null; } & Omit, 'x' | 'y' | 'x0' | 'x1' | 'y0' | 'y1' | 'ref'>; function BaseLineSeries({ diff --git a/packages/visx-xychart/test/components/LineSeries.test.tsx b/packages/visx-xychart/test/components/LineSeries.test.tsx index 5e3b621e2..a941c2c85 100644 --- a/packages/visx-xychart/test/components/LineSeries.test.tsx +++ b/packages/visx-xychart/test/components/LineSeries.test.tsx @@ -87,18 +87,14 @@ describe('', () => { }); it('should use colorAccessor if passed', () => { - const {container} = render( + const { container } = render( - 'banana'} - /> + 'banana'} /> , ); - expect(container.querySelector('path')).toHaveAttribute('stroke', 'banana') + expect(container.querySelector('path')).toHaveAttribute('stroke', 'banana'); }); });