mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Fix article test to handle patches endpoint change
This commit is contained in:
parent
c3b3c6ea2a
commit
b175c02714
1 changed files with 3 additions and 3 deletions
|
@ -613,9 +613,9 @@ describe 'GET /db/article/:handle/patches', ->
|
|||
expect(patches[0]._id).toBe(patch._id)
|
||||
done()
|
||||
|
||||
it 'returns 422 for invalid object ids', utils.wrap (done) ->
|
||||
[res, body] = yield request.getAsync getURL("/db/article/invalid/patches"), { json: true }
|
||||
expect(res.statusCode).toBe(422)
|
||||
it 'returns 404 for handles that do not exist', utils.wrap (done) ->
|
||||
[res, body] = yield request.getAsync getURL("/db/article/dne/patches"), { json: true }
|
||||
expect(res.statusCode).toBe(404)
|
||||
done()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue