Skip to content

Commit

Permalink
test: tickFormatOptions is always there
Browse files Browse the repository at this point in the history
  • Loading branch information
monfera committed Oct 10, 2021
1 parent b85648f commit 4af0a38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function enableDuplicatedTicks(
scale: Scale<number | string>,
offset: number,
fallBackTickFormatter: TickFormatter,
tickFormatOptions?: TickFormatterOptions,
tickFormatOptions: TickFormatterOptions,
): AxisTick[] {
const allTicks: AxisTick[] = scale.ticks().map((tick) => ({
value: tick,
Expand All @@ -74,7 +74,7 @@ function getVisibleTicks(
rotationOffset: number,
scale: Scale<number | string>,
enableHistogramMode: boolean,
tickFormatOptions?: TickFormatterOptions,
tickFormatOptions: TickFormatterOptions,
): AxisTick[] {
const ticks = scale.ticks();
const isSingleValueScale = scale.domain[0] === scale.domain[1];
Expand Down

0 comments on commit 4af0a38

Please sign in to comment.