You've already forked tf2wikipricing
test: clean up calc comment
This commit is contained in:
@@ -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', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user