eugef / node-mocks-http

Mock 'http' objects for testing Express routing functions
Other
755 stars 134 forks source link

Add locals object to response #135

Closed jhsware closed 7 years ago

jhsware commented 7 years ago

The response object is missing a documented property: http://expressjs.com/en/api.html#res.locals

This closes issue: https://github.com/howardabrams/node-mocks-http/issues/132

jhsware commented 7 years ago

I got a bit ahead of myself... obviously this feature shouldn't be included in the base http mock since it isn't an express-mock...

jhsware commented 7 years ago

Re-opened with code moved to Express-mock

eugef commented 6 years ago

This is still an issue in v1.6.6

Is it possible to get this feature merged into master?