This commit is contained in:
wujinliang
2026-09-21 19:36:37 +08:00
parent 8fbefcf657
commit b4403ab188
9 changed files with 62 additions and 9 deletions
@@ -19,6 +19,13 @@ test('translates backend rounding modes into customer-facing calculation labels'
assert.match(source, /return value \? labels\[value\] \|\| value : '-'/)
})
test('translates carton calculation rules into customer-facing labels', () => {
assert.match(source, /export function getCalculationRuleLabel/)
assert.match(source, /ACTUAL_DIMENSION_V1/)
assert.match(source, /按实际箱规计算/)
assert.match(source, /CUSTOMER_DIMENSION_\(SMALL\|MEDIUM\|LARGE\|EXTRA_LARGE\)_V/)
})
test('renders conversion metadata as one complete label or a single empty marker', () => {
assert.match(source, /export function formatConversionPrecision/)
assert.match(source, /roundingScale === null \|\| roundingScale === undefined/)