Read invoice.cjs and invoice.test.cjs in the current directory. Fix only invoice.cjs so totalCents multiplies integer prices in cents by quantities, handles an empty invoice and zero quantities, rejects negative or fractional quantities, and does not mutate inputs. Run node --test invoice.test.cjs and report the actual result. Do not change the tests. Do not use subagents or access files outside this directory.
