mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
openapi: support standard http error codes
API errors are now handled at the end of the request heap by throwing exceptions from the handler
This commit is contained in:
parent
3742fdfb04
commit
ccf406708e
5 changed files with 111 additions and 48 deletions
|
@ -111,7 +111,7 @@ describe('deletePad', function(){
|
|||
it('deletes a Pad', function(done) {
|
||||
api.get(endPoint('deletePad')+"&padID="+testPadId)
|
||||
.expect('Content-Type', /json/)
|
||||
.expect(200, done)
|
||||
.expect(200, done) // @TODO: we shouldn't expect 200 here since the pad may not exist
|
||||
});
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue