# Simulator unit tests

Pure-logic JS unit tests (no browser), run with Node's built-in test runner:

    node --test simulator/unit/*.test.js

`scrub.test.js` covers `simulator/static/scrub.js` — the pure altitude-scrub math
(position→segment, frac→currentTime, audio gains, integer-crossing detection).
