mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
update a test to check for undefined value when making new habit
This commit is contained in:
parent
3139e51535
commit
4958690bcb
1 changed files with 2 additions and 0 deletions
|
|
@ -159,6 +159,8 @@ describe 'API', ->
|
|||
expect(res.body.id).not.to.be.empty()
|
||||
# Ensure that user owns the newly created object
|
||||
expect(user.get().tasks[res.body.id]).to.be.an('object')
|
||||
# Ensure that value gets set to 0 since not otherwise specified
|
||||
expect(user.get().tasks[res.body.id].value).to.be.equal(0)
|
||||
done()
|
||||
|
||||
it 'PUT /api/v1/user/task/:id', (done) ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue