Commit graph

38 commits

Author SHA1 Message Date
Dušan Juretić
acbe058317 Fix tests by adding quest attributes 2013-12-25 15:29:39 -03:00
Dušan Juretić
f2484a92d9 Fixed more tests, only preening test fails 2013-12-21 22:51:13 -03:00
Dušan Juretić
b1d66df8a8 More tests fixed, removed references to algos, remove priorityValue test 2013-12-21 22:32:54 -03:00
Dušan Juretić
29e653cb4d Fix drop system tests 2013-12-21 15:50:14 -03:00
Dušan Juretić
01247bfdb2 Fixed some tests 2013-12-21 00:07:43 -03:00
Dušan Juretić
f37c1a9f21 Test for food drop 2013-12-08 20:14:16 -03:00
Dušan Juretić
e963674384 fix preening user history test by freezing time 2013-12-06 23:08:29 -03:00
Tyler Renelle
5d0b925a4c fix tests for 282e105 . May be temporary, unless we verify that 282e105
was the fix for https://github.com/HabitRPG/habitrpg/issues/1057
2013-11-29 17:21:22 -07:00
Dušan Juretić
b9abc31edb added test for countPets 2013-11-23 23:57:16 -03:00
Dušan Juretić
80afa45b2b revert to using egg.name 2013-11-16 09:26:15 -03:00
Dušan Juretić
2879b050a0 use egg.text instead of egg.name, fix unit tests 2013-11-15 23:18:16 -03:00
Dušan Juretić
97606ddbb0 fix preen user history test 2013-11-12 22:55:15 -03:00
Dušan Juretić
21907a6af4 remove unimplemented tests 2013-11-09 20:57:10 -03:00
Dušan Juretić
20192b1d0a enable all tests again, don't log to console in tests 2013-11-09 20:56:18 -03:00
Tyler Renelle
5482a83a00 add preen_history to user cron (see
https://github.com/HabitRPG/habitrpg/issues/1492), to cut back on user
object sizes (and hopefully angular performance) dramatically. Start
writing tests, but they're not complete. @djuretic could you take a peak
at this? My brain is melting
2013-11-05 17:10:31 -08:00
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