next-routes
next-routes copied to clipboard
Add return statement to getRequestHandler middleware
This return statement should be there as that functions return promises and getRequestHandler just breaks promise chain.
Coverage decreased (-0.4%) to 94.468% when pulling 2faf867d2d72c7ef6a05a5c41a673f911cab4bc5 on dmytro-lymarenko:master into 08e8bbeaa76c5ec194abea388a193bedac7f35fc on fridays:master.
Thanks, not sure I understand because the standard Node.js (and Express) request handler is just a function callback, no promise.
@fridays, this is for koa routes. I'm using next js with koa as a custom server and I need to wait for it.
How should I write tests so its coverage passes?