Skip to content

docs: inject chainable methods (#1917)#2043

Merged
mcollina merged 2 commits intofastify:masterfrom
alemagio:docs-chainable-inject
Jan 21, 2020
Merged

docs: inject chainable methods (#1917)#2043
mcollina merged 2 commits intofastify:masterfrom
alemagio:docs-chainable-inject

Conversation

@alemagio
Copy link
Copy Markdown
Contributor

Added a reference to chainable methods on 'inject' function based on the update of 'light-my-request'

Checklist

  • run npm run test and npm run benchmark
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message and code follows Code of conduct

docs/Testing.md Outdated
})
```

you can also use chaining methods if you do not pass the callback function
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
you can also use chaining methods if you do not pass the callback function
`.inject` methods can also be chained by omitting the callback function:

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@delvedor delvedor added the documentation Improvements or additions to documentation label Jan 17, 2020
Copy link
Copy Markdown
Member

@RafaelGSS RafaelGSS left a comment

Choose a reason for hiding this comment

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

LGTM

docs/Testing.md Outdated
.get('/')
.headers({ foo: 'bar' })
.query({ foo: 'bar' })
.end((err, res) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
.end((err, res) => {
.end((err, res) => { // the .end call will trigger the request

Copy link
Copy Markdown
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

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

LGTM with the suggestions above.

@alemagio
Copy link
Copy Markdown
Contributor Author

Sorry guys, so i add both the changes and we are good to go?

@jsumners
Copy link
Copy Markdown
Member

@alemagio did you forget to push the changes?

@alemagio
Copy link
Copy Markdown
Contributor Author

@alemagio did you forget to push the changes?

Nono, i didn't get if you want me to apply both of the suggestions

@jsumners
Copy link
Copy Markdown
Member

They are suggestions for improvement and one reviewer said the PR will be acceptable with them applied.

@alemagio
Copy link
Copy Markdown
Contributor Author

Ok, great.
Pushing in minutes

@github-actions
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants