Basically always accept a time argument to your function, defaulting to now. Then you just pass in a constant time within your test.
Basically always accept a time argument to your function, defaulting to now. Then you just pass in a constant time within your test.