Skip to content

Commit 714f966

Browse files
committed
wip(test): pin the recomputed JPY report value (#27193)
Claude-Session: https://claude.ai/code/session_01Utp6CXZRTkUQ6UjyMWfN2U Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0618066 commit 714f966

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/objectql/src/engine-home-amount-projection.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,8 @@ describe('recompute: the write\'s own rules, per organization', () => {
627627
expect.objectContaining({ organizationId: 'org_b', homeCurrency: 'JPY', amounts: 1, unchanged: 0, changed: 1, written: 1 }),
628628
]);
629629
expect(t.storeFor('fx_invoice').get(a.id)).toMatchObject({ amount_home: 10000, amount_rate: 0.1389 });
630-
// 721 ÷ 0.048 = 15020.83…, whole yen: JPY has no fraction digits.
630+
// 721 ÷ 0.048 = 15020.83…, whole yen: JPY has no fraction digits — in the report and in the row.
631+
expect(report.changes.map((c) => c.to)).toEqual([{ home: 15021, rate: 0.048 }]);
631632
expect(t.storeFor('fx_invoice').get(b.id)).toMatchObject({ amount_home: 15021, amount_rate: 0.048 });
632633
});
633634
});

0 commit comments

Comments
 (0)