Skip to content

Commit b67505c

Browse files
committed
docs(spec): two more spellings of the same sentence, a wrapped docblock and a test title
Claude-Session: https://claude.ai/code/session_01L6bhgWFZUMBKFD9Lcwt4DU Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6b923ee commit b67505c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/spec/src/data/currency-precision-iso4217.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ describe('field-level `precision` is total digits, never judged against the curr
224224
expect(result.data!.precision).toBe(2);
225225
});
226226

227-
it('flipped: `precision: 2` on a fixed-JPY field parses — a DECIMAL(2,0) amount — where the ISO 4217 width check used to refuse it', () => {
227+
it('flipped: `precision: 2` on a fixed-JPY field parses — a DECIMAL(2,0) amount — where the retired #7918 width check used to refuse it', () => {
228228
const result = FieldSchema.safeParse({ ...base, precision: 2, currencyConfig: fixed('JPY') });
229229
expect(result.success).toBe(true);
230230
expect(result.data!.precision).toBe(2);

‎packages/spec/src/data/field.zod.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ const CURRENCY_DECIMAL_PLACES_ARE_THE_CURRENCYS =
501501
* #19992 (ADR-0049 enforce-or-remove, triage direction REMOVE under ruling 乙 on
502502
* #19910 — 「a currency's decimal places are the currency's, not a setting」):
503503
* `precision` was a declared, validated key that no renderer or runtime ever
504-
* read. objectui's `CurrencyField` derives the width from the currency's ISO
505-
* 4217 minor unit (read points recorded in `liveness/field.json`, row
504+
* read. objectui's `CurrencyField` derives the width from the currency's CLDR
505+
* fraction digits (read points recorded in `liveness/field.json`, row
506506
* `currencyConfig`), and no code read the key at all — measured with a lit
507507
* control (`currencyConfig.currencyMode` IS read) over objectstack
508508
* `packages/**` + `examples/**`, objectui (the console's tree and `main`) and

0 commit comments

Comments
 (0)