test: clean up calc comment

This commit is contained in:
xenticore
2025-03-24 19:45:33 -04:00
parent 60f90d6a37
commit 349ceacb4d

View File

@@ -34,7 +34,7 @@ describe('formatPrice', () => {
}); });
test('rounds USD up to nearest cent', () => { test('rounds USD up to nearest cent', () => {
expect(formatPrice(3, 7.33, 35)).toBe('3.21 keys (US$5.62)'); // (3*35 +7.33)*0.05 = 5.6165 → 5.62 expect(formatPrice(3, 7.33, 35)).toBe('3.21 keys (US$5.62)'); // (3 * 35 + 7.33) * 0.05 = 5.6165 → 5.62
}); });
test('handles different locale formatting', () => { test('handles different locale formatting', () => {