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

Commits on Apr 5, 2019

  1. Persist mutations to res.locals

    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.
    Alex Deas committed Apr 5, 2019
    Configuration menu
    Copy the full SHA
    e83e539 View commit details
    Browse the repository at this point in the history