mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
Status test
This commit is contained in:
parent
55afba34ae
commit
e557bf89a7
1 changed files with 8 additions and 0 deletions
|
|
@ -88,6 +88,14 @@ describe 'API', ->
|
|||
|
||||
describe 'Without token or user id', ->
|
||||
|
||||
it '/api/v1/status', (done) ->
|
||||
request.get("#{baseURL}/status")
|
||||
.set('Accept', 'application/json')
|
||||
.end (res) ->
|
||||
assert.equal res.statusCode, 200
|
||||
assert.equal res.body.status, 'up'
|
||||
done()
|
||||
|
||||
it '/api/v1/user', (done) ->
|
||||
request.get("#{baseURL}/user")
|
||||
.set('Accept', 'application/json')
|
||||
|
|
|
|||
Loading…
Reference in a new issue