mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
add example apidoc comments, add notFound middleware
This commit is contained in:
@@ -88,7 +88,7 @@ describe('errorHandler', () => {
|
||||
errorHandler(error, req, res, next);
|
||||
|
||||
expect(logger.error).to.be.calledOnce;
|
||||
expect(logger.error).to.be.calledWith(error.stack, {
|
||||
expect(logger.error).to.be.calledWithExactly(error.stack, {
|
||||
originalUrl: req.originalUrl,
|
||||
headers: req.headers,
|
||||
body: req.body,
|
||||
|
||||
Reference in New Issue
Block a user