express-mock-request
express-mock-request copied to clipboard
The "Mock Request" object extracted from express
The line methods = require('express').methods in index.js fails against the most recent version of Express. I can get this module to work fine by simply hard-coding an array ['get','post',..] etc....
methods.forEach(function(method){ ^ TypeError: Cannot read property 'forEach' of undefined at Object. (/Users/deo/Documents/river.governor/server/node_modules/express-mock-request/index.js:37:8) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17)...