Merge pull request #607 from switz/api-alg
@lefnire => Fix broken tnl test
This commit is contained in:
@@ -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 should be 100
|
||||
self.stats.tnl = 100
|
||||
self.stats.toNextLevel = 150
|
||||
self.stats.maxHealth = 50
|
||||
|
||||
expect(res.body).to.eql self
|
||||
|
||||
Reference in New Issue
Block a user