fixed a little math bug in backend so that it won't say that we need negative more players to start
Added var keyword to make all private functions in backend and mobile appropriately non-global. Which also allows test to work. hehe
backend displays round counter correctly
test can now verify that the timer is set correctly on round start
wrestling with nasty logged in user count bug in backend. Moved the basic function for counting logged in users into a private method, and then called that from an anonymous function for RPC. logged_in_users now is a cached value set equal to getLoggedInUsers.length on every login
Ok, finally happy with these two tests. The tests seem to be atomic, and they pass without starting up all kinds of crazy infinite game loops or phantom users
almost have the test for buttons working
ok, it took 7 hours or so, but I've got the test client working with some convenience functions. Turns out that it wasn't the asynchronous stuff, but just that the backend and mobile weren't modular enough to be tested with unit tests, so they had to be refactored a bit more.
merged in dev
removed a leftover merge marker