mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -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)
|
expect(patches[0]._id).toBe(patch._id)
|
||||||
done()
|
done()
|
||||||
|
|
||||||
it 'returns 422 for invalid object ids', utils.wrap (done) ->
|
it 'returns 404 for handles that do not exist', utils.wrap (done) ->
|
||||||
[res, body] = yield request.getAsync getURL("/db/article/invalid/patches"), { json: true }
|
[res, body] = yield request.getAsync getURL("/db/article/dne/patches"), { json: true }
|
||||||
expect(res.statusCode).toBe(422)
|
expect(res.statusCode).toBe(404)
|
||||||
done()
|
done()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue