Skip to content

Persist mutations to res.locals#19

Open
alexandradeas wants to merge 1 commit into
danawoodman:masterfrom
alexandradeas:feature/res-locals-mutations
Open

Persist mutations to res.locals#19
alexandradeas wants to merge 1 commit into
danawoodman:masterfrom
alexandradeas:feature/res-locals-mutations

Conversation

@alexandradeas

Copy link
Copy Markdown

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
Copy Markdown
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.

1 participant