Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 5, 2021
1 parent 03423a5 commit 7232ed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/report/reporters/boxplot/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const reportTerminal = function (
const { minAll, maxAll } = getMinMaxAll(combinationsA)
const { titlesWidth, minBlockWidth, contentWidth } = getWidths(
combinationsA,
screenWidth,
mini,
screenWidth,
)
return combinationsA
.map((combination) =>
Expand Down
2 changes: 1 addition & 1 deletion src/report/reporters/boxplot/width.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getPaddedStat } from './box.js'
// - Padding space reserved for the leftmost `min`
// - Content, i.e. box plot and their labels
// - Padding space reserved for the rightmost `max`
export const getWidths = function (combinations, screenWidth, mini) {
export const getWidths = function (combinations, mini, screenWidth) {
const titlesWidth = getCombinationPaddedName(combinations[0]).length
const minBlockWidth = getMinMaxBlockWidth(combinations, mini, 'min')
const maxBlockWidth = getMinMaxBlockWidth(combinations, mini, 'max')
Expand Down

0 comments on commit 7232ed4

Please sign in to comment.