mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
Rename user.stats.tnl to user.stats.toNextLevel
This commit is contained in:
parent
5141aeda78
commit
7cb291c4de
2 changed files with 2 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ auth = (req, res, next) ->
|
|||
router.get '/user', auth, (req, res) ->
|
||||
user = req.userObj
|
||||
|
||||
user.stats.tnl = tnl user.stats.lvl
|
||||
user.stats.toNextLevel = tnl user.stats.lvl
|
||||
user.stats.maxHealth = 50
|
||||
|
||||
delete user.apiToken
|
||||
|
|
|
|||
|
|
@ -100,8 +100,7 @@ describe 'API', ->
|
|||
expect(res.body.id).not.to.be.empty()
|
||||
self = _.clone(currentUser)
|
||||
delete self.apiToken
|
||||
# To next level
|
||||
self.stats.tnl = 150
|
||||
self.stats.toNextLevel = 150
|
||||
self.stats.maxHealth = 50
|
||||
|
||||
expect(res.body).to.eql self
|
||||
|
|
|
|||
Loading…
Reference in a new issue