mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
renaming to user.mocha.coffee
This commit is contained in:
parent
6b4ad78ec5
commit
90f30ac1f0
2 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -12,7 +12,7 @@ g = "."
|
|||
|
||||
#@NODE_ENV=test $(MOCHA) --grep "$(g)" $(MOCHA_TESTS) | tee $(OUT_FILE)
|
||||
test-mocha:
|
||||
@NODE_ENV=test $(MOCHA) ./test/scoring.mocha.coffee
|
||||
@NODE_ENV=test $(MOCHA) ./test/user.mocha.coffee
|
||||
|
||||
|
||||
test: test-mocha
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ scoring = require '../src/app/scoring'
|
|||
schema = require '../src/app/schema'
|
||||
_ = require '../public/js/underscore-min'
|
||||
|
||||
describe 'Scoring', ->
|
||||
describe 'User', ->
|
||||
model = null
|
||||
|
||||
beforeEach ->
|
||||
|
|
@ -48,7 +48,7 @@ describe 'Scoring', ->
|
|||
it 'should make proper modifications when down-scored', ->
|
||||
# Down-score the habit
|
||||
[userBefore, taskBefore] = [model.get('_user'), model.get(taskPath)]
|
||||
scoring.score(uuid, 'down')
|
||||
scoring.score({taskId:uuid, direction:'down'})
|
||||
[userAfter, taskAfter] = [model.get('_user'), model.get(taskPath)]
|
||||
|
||||
# User should have lost HP
|
||||
Loading…
Reference in a new issue