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

Update doc and typings for res.json() #56

Merged
merged 4 commits into from
Oct 16, 2019

Conversation

fralonra
Copy link
Member

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

README.md Outdated Show resolved Hide resolved
Copy link
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

Co-Authored-By: Rafael Gonzaga <[email protected]>
README.md Outdated Show resolved Hide resolved
@mcollina
Copy link
Member

mcollina commented Oct 15, 2019 via email

@fralonra
Copy link
Member Author

@mcollina
I'm sorry, but I don't understand how to add a test for the new type.

@mcollina
Copy link
Member

Just add a call to json() in

inject(dispatch, { method: 'get', url: '/' }, (err, res) => {
.

@fralonra
Copy link
Member Author

@mcollina should I use expectType to test if the type of res.json is Function?

@mcollina
Copy link
Member

That'd be nice.

This needs a rebase.

@fralonra
Copy link
Member Author

@mcollina Rebase and then force push? By me?

@mcollina
Copy link
Member

I cannot push to your branch. You can also merge master.

@fralonra
Copy link
Member Author

Done. BTW, can you rebase and merge when merging to master? @mcollina

Copy link
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

@mcollina mcollina merged commit 5b55e46 into fastify:master Oct 16, 2019
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.

4 participants