add tests for helper functions on bar
This commit is contained in:
@@ -39,10 +39,10 @@ export const Bar: React.FC<BarProps> = ({
|
||||
|
||||
return (
|
||||
<Path
|
||||
key={`bar-${barNumber}-${index}`}
|
||||
d={drawBarPath(xOrigin, yOrigin, barWidth, height, roundedRadius)}
|
||||
fill={fill}
|
||||
testID={`bar-${barNumber}-${index}`}
|
||||
key={`bar-path-${barNumber}-${index}`}
|
||||
d={drawBarPath(xOrigin, yOrigin, barWidth, height, roundedRadius)}
|
||||
fill={fill}
|
||||
testID={`bar-${barNumber}-${index}`}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
@@ -21,7 +21,7 @@ interface CustomBarsProps {
|
||||
roundedRadius: number;
|
||||
}
|
||||
|
||||
export const CustomBars: React.FC<Partial<CustomBarsProps>> = ({
|
||||
export const CustomBars: React.FC<CustomBarsProps> = ({
|
||||
x: scaleX,
|
||||
y: scaleY,
|
||||
bandwidth,
|
||||
|
Reference in New Issue
Block a user