updates
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user