Commit graph

23 commits

Author SHA1 Message Date
Dušan Juretić
fab7a10920 make cron tests locale aware (first day of the week) 2013-10-27 20:34:36 -03:00
Dušan Juretić
ecc8ff740e add lastDrop to helpers.newUser 2013-10-27 16:23:02 -03:00
Dušan Juretić
b5fefc2664 add test for priority values 2013-10-27 16:23:02 -03:00
Dušan Juretić
48393637fc using length matcher to have more helpful error messages 2013-10-27 16:23:02 -03:00
Dušan Juretić
6ef96c1f83 added drop system tests, stubbing Math.random with sinon 2013-10-05 22:12:42 -03:00
Dušan Juretić
f9d39103ed add test of 'to next level' experience 2013-09-28 19:25:46 -03:00
Dušan Juretić
49d73543e0 add test for revival 2013-09-28 19:21:45 -03:00
Dušan Juretić
db8723f0d2 add tests for store operations 2013-09-28 18:36:23 -03:00
Dušan Juretić
c9edf64d7f remove console.log in test 2013-09-28 18:28:57 -03:00
Dušan Juretić
939bca1eb9 add silver leading zero 2013-09-23 23:30:13 -03:00
Dušan Juretić
c60f6f1c23 corrected rounding of gold & silver calculations 2013-09-23 23:03:11 -03:00
Dušan Juretić
e664037fb9 tests now passing, fixes #18 2013-09-22 16:28:30 -03:00
Tyler Renelle
6aa9483a0b cron: add timezone calculation into the midst. Note: this requires user.preferences.timezoneOffset exist on the user, otherwise it will default to the script-runner timezone (which works fine if user or browser) 2013-08-20 21:40:39 -04:00
Tyler Renelle
2c75f94254 tests: no longer using shouldCron, test cron paths{} instead 2013-08-19 00:31:07 -04:00
Tyler Renelle
51a80b6626 some bug-fixes on shouldDo() for today-check 2013-05-25 18:26:07 +01:00
Tyler Renelle
12ef6edf8d tests: add checked-test for dailys 2013-05-25 18:05:31 +01:00
Tyler Renelle
caf6981550 tests: refactored to a cron-matrix so we can come up with some complex combinations 2013-05-25 18:01:03 +01:00
Tyler Renelle
c4e18b5f04 tests: first pass at cron tests 2013-05-25 16:53:35 +01:00
Tyler Renelle
85eb6789ac update daily.value when checked off, not on cron. Better for
testability, and I'm not sure why I was doing it the other way before?
2013-05-25 15:22:04 +01:00
Tyler Renelle
f5b7968132 tests: all the simple scoring test, getting ready for the complex cron
stuff.
2013-05-25 15:03:03 +01:00
Tyler Renelle
ca665d334a tests: get rid of some old useless ones, add in 1-day for dailys 2013-05-24 16:24:18 +01:00
Tyler Renelle
5a2540ec10 test: todos - one day missed 2013-05-24 16:12:55 +01:00
Tyler Renelle
be670dcb04 start adding mocha tests, based on the old user.mocha.coffee 2013-05-24 14:28:57 +01:00