mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
Set maxHealth to 50
This commit is contained in:
parent
ef7d705059
commit
5a1343a3b7
2 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ router.get '/user', auth, (req, res) ->
|
|||
user = req.userObj
|
||||
|
||||
user.stats.tnl = tnl user.stats.lvl
|
||||
user.stats.maxHealth = 50
|
||||
|
||||
delete user.apiToken
|
||||
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ describe 'API', ->
|
|||
delete self.apiToken
|
||||
# To next level should be 100
|
||||
self.stats.tnl = 100
|
||||
self.stats.maxHealth = 50
|
||||
|
||||
expect(res.body).to.eql self
|
||||
done()
|
||||
|
|
|
|||
Loading…
Reference in a new issue