Hydra
Bug library · pricing · math

Wrong total

Shipping is charged once per cart line instead of once per order, inflating the total.

Breaks: main, holdout · expected from Kane: caught · The main spec asserts Shipping $4.00 and Total $58.00 for a two-line cart.

The diff

lib/pricing.ts
- const shippingCents = lines.length > 0 ? SHIPPING_CENTS : 0;
+ const shippingCents = lines.length * SHIPPING_CENTS;