import { describe, expect, it } from 'vitest'; import { calcItemAmount } from '../src/services/orderPricingService'; describe('ED-P0-2 amount gate', () => { it('ignores client-tampered amount: server uses qty × price only', () => { const quantity = 10; const price = 3.5; const clientAmount = 9999; const stored = calcItemAmount(quantity, price); expect(stored).toBe(35); expect(stored).not.toBe(clientAmount); }); });