Skip to content

Pass request to global context function when available#81

Merged
jagoda merged 1 commit intohapijs:masterfrom
jagoda:feat-context
Apr 4, 2016
Merged

Pass request to global context function when available#81
jagoda merged 1 commit intohapijs:masterfrom
jagoda:feat-context

Conversation

@jagoda
Copy link
Copy Markdown
Contributor

@jagoda jagoda commented Apr 1, 2016

Resolves #59.

@jagoda jagoda added the feature New functionality or improvement label Apr 1, 2016
@jagoda jagoda added this to the 4.1.0 milestone Apr 1, 2016
@jagoda
Copy link
Copy Markdown
Contributor Author

jagoda commented Apr 1, 2016

@g6123 what do you think? Would this work for you?

@jagoda jagoda merged commit 164a376 into hapijs:master Apr 4, 2016
@jagoda jagoda deleted the feat-context branch April 4, 2016 20:05
});

it('returns a promise when no options or callback given (server)', () => {
it('does not pass the request to the global context function (server)', (done) => {
Copy link
Copy Markdown
Contributor

@wswoodruff wswoodruff Dec 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reasoning behind this test? issue #115 asking to have the request object available to the global context when using request.render

@lock
Copy link
Copy Markdown

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Global context with request argument

2 participants