I am creating a simple router module, just a wrapper around grapnel and grapnel-server, that will fit all my needs. But when I tried to create two instances of GrapnelServer in my mocha tests the second instance inherited the req parameter (in the middleware) from the first instance.
I am creating a simple router module, just a wrapper around grapnel and grapnel-server, that will fit all my needs. But when I tried to create two instances of
GrapnelServer
in my mocha tests the second instance inherited thereq
parameter (in the middleware) from the first instance.Here is an example: https://tonicdev.com/artnikpro/grapnel-server-issue