I use node-mocks-http with koa2.
when I call ctx.cookies.get() methd in koa2 customer middleware,it throw an error:"TypeError: Cannot read property 'encrypted' of undefined".
Suggestions
I found that Koa2 check it's this.socket.encrypted when user call ctx.cookies.get() methd,
It seems that the node-mocks-http mockRequest instance need a socket property.
Overview
I use node-mocks-http with koa2. when I call ctx.cookies.get() methd in koa2 customer middleware,it throw an error:"TypeError: Cannot read property 'encrypted' of undefined".
Suggestions
I found that Koa2 check it's this.socket.encrypted when user call ctx.cookies.get() methd, It seems that the node-mocks-http mockRequest instance need a socket property.