Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist mutations to res.locals #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexandradeas
Copy link

Adds persistence to res.locals by using Object constructor syntax rather
than Object literal syntax. This returns an object reference and means
that when passed to a function the reference is updated. As this
reference is avilable outside the middleware being tested it means that
changes to res.locals can be tested.

Adds persistence to res.locals by using Object constructor syntax rather
than Object literal syntax. This returns an object reference and means
that when passed to a function the reference is updated. As this
reference is avilable outside the middleware being tested it means that
changes to res.locals can be tested.
@alexandradeas
Copy link
Author

This resolves #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant