updates
CI / test (push) Successful in 58s
Release rolling / release (push) Successful in 7m11s

This commit is contained in:
Raven Scott
2026-07-18 22:15:43 -04:00
parent 76d43bfdbd
commit 6d384534f2
9 changed files with 363 additions and 289 deletions
+7
View File
@@ -6,6 +6,7 @@ import {
normalizeChartMode,
isCompositionChart,
} from '../shared/chart-types.js'
import { padLeftFor } from '../ui/charts.js'
test('normalizeChartMode aliases', (t) => {
t.is(normalizeChartMode('STACK'), 'stacked')
@@ -45,3 +46,9 @@ test('line charts cycle through sensible modes', (t) => {
t.ok(seen.has('bar'))
t.absent(seen.has('pie'))
})
test('padLeftFor matches Y-axis layout', (t) => {
t.is(padLeftFor('', true), 46)
t.is(padLeftFor('kilobytes', true), 52)
t.is(padLeftFor('percentage', false), 0)
})