Tyler Renelle
cc6e0a9c7b
tests(perfect-day) remove buffs from cron-matrix stuff for now
2014-01-15 18:01:44 -07:00
Tyler Renelle
8df7fe65c5
feat(perfect-day achievement) here's one for the road @wc8 @sabrecat, if
...
you perform a perfect day of dailies, you get an achievement PLUS lvl/2
buff to all stats for the next day
2014-01-15 16:26:47 -07:00
Tyler Renelle
3e290b4734
Revert auto-clearing completed to-dos, instead we'll hide stale completeds from our angular app
2014-01-14 17:59:35 -07:00
Tyler Renelle
d3a076a405
give all tasks a creation date. When to-dos are completed, if they're
...
sitting in "completed" section for more than 3 days, delete them on
cron. @sabrecat @paglias @colegleason @wc8 heads up. this should help
with the performance issues people are experiencing when they don't know
to clear completeds, but let me know if this you think this is a bad
idea. @wizonesolutions sorry for the delay ;)
2014-01-14 16:49:52 -07:00
Tyler Renelle
673267fb39
Revert 393bbb1 & 3bd81ab , too many issues. We'll work on a system-based
...
cron solution. @colegleason
2014-01-13 10:45:11 -07:00
Dušan Juretić
c9ddf0e15d
Fix typos
2014-01-11 17:54:50 -03:00
Dušan Juretić
bbddb5f87d
Added test for valid spell targets
2014-01-11 17:29:25 -03:00
Cole Gleason
393bbb1885
Modify runCron tests to use hoursAgo instead of daysAgo.
...
This commit also sets hoursAgo for many of the cases and restructures
how cronMatrix is parsed so that more specific settings may override
defaults higher up on the tree.
2014-01-08 23:42:31 -06:00
Cole Gleason
3bd81abda3
startOfDay: if between midnight and custom day start, jump back to previous day
2014-01-08 22:30:56 -06:00
Tyler Renelle
c01d5d79d6
event-items: try a different approach than "unbreakable" ( 1335750). If they've owned it before (item==false), then they canOwn() again. In those cases, set item to 'event'
2014-01-06 17:13:44 -07:00
Tyler Renelle
1335750804
add unbreakable special items, so we can add special-event gear which users can buy during a certain period of time, but which they can't lose on death. Starting with party-hats
2014-01-06 14:15:21 -07:00
Dušan Juretić
3549659d94
Added test for max MP calculation
2014-01-01 22:53:19 -03:00
Tyler Renelle
8cc55b1ee5
rebirth fix tests
2013-12-31 08:02:58 -07:00
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