Scott Erickson
1fb7996f6c
Fix EarnedAchievement.upsertFor to handle achievements that had no rewards
2016-09-08 10:32:59 -07:00
Scott Erickson
9088f98eae
Add function to properties that trigger achievement updates
2016-09-06 10:32:54 -07:00
Scott Erickson
2fe28852b4
More achievement tweaks
...
* Clients check updated achievements as well as new ones
* Clients do not wait to keep checking
* Update achievement points along with everything else in EarnedAchievement.upsertFor
* Fix various bugs
2016-09-06 09:37:02 -07:00
Scott Erickson
273845ce2e
Fix POST /db/earned_achievement to be accessible to anonymous users
2016-08-31 10:07:19 -07:00
Scott Erickson
cf9d082ffa
Have client check for achievement updates
2016-08-29 16:32:42 -07:00
Scott Erickson
139efe4cf7
Implement POST /db/user/:handle/check-for-new-achievement, couple tweaks
...
* Enforce being logged in for POST /db/earned_achievement
* Extend timeout for race condition user tests
2016-08-29 14:53:51 -07:00
Scott Erickson
f509c95a4b
Refactor POST /db/earned_achievement
2016-08-29 14:53:36 -07:00
Scott Erickson
5c8b8832b3
Refactor and better test EarnedAchievement.createForAchievement
2016-08-29 14:52:50 -07:00
Scott Erickson
b33620779d
Refactor achievement handler for #3469
2016-04-11 12:00:22 -07:00
Scott Erickson
823dbd620b
Refactor achievement specs for #3469
2016-04-08 15:06:05 -07:00
Scott Erickson
29cd880480
Refactor handlers to /server/handlers
2016-04-07 09:40:53 -07:00
Scott Erickson
c3e5416166
Refactor server models into /server/models, remove request and mongoose from test globals
2016-04-06 16:06:52 -07:00
Scott Erickson
def3e9a009
Improve travis success rate
...
https://travis-ci.org/codecombat/codecombat/builds/96076589
Failures:
1) Recalculate Achievements remove earned achievements
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
...
Apparently EarnedAchievement creation from previous tests bleeds into this test case.
Adding a timeout to minimize the race condition problem here.
2015-12-18 10:40:37 -08:00
Scott Erickson
23e3821e24
Switch from jasmine-node to jasmine, run server tests on a single process
...
This collapses the difference between master and single-process-server-tests, to
remove some larger fixtures files that were in that feature branch.
2015-12-09 14:27:10 -08:00