so... I think we're well beyond the point of needing unit tests for openaps-js. anyone here have enough experience or free time to help set up a decent unit test framework? once the framework is in place I can start populating it with tests (sets of inputs and the outputs I expect)...
whatever you guys think is easiest: I just don't have time to do it at this point. :)
just added some more features to openaps-js: feel free to review the commit logs and test the changes if you're using it.
it now sets the current basal as a temp if it has nothing else to do (so you can see on the pump it's working), and it also reduces high-temps if the required high-temp would deliver less insulin than the currently scheduled one
I also raised the maximum basal rate from 2x to 3x max daily basal