-
Notifications
You must be signed in to change notification settings - Fork 759
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
Clarify that .end(..)
closes the server
#369
base: master
Are you sure you want to change the base?
Conversation
I'm doing a cleanup of my repositories, anybody here to accept this change? it's just Readme... |
Readme.md
Outdated
@@ -210,6 +214,8 @@ describe('request.agent(app)', function(){ | |||
### .end(fn) | |||
|
|||
Perform the request and invoke `fn(err, res)`. | |||
If the call was created with an instance of a server - it **closes** the server, wether it was bound to a port or not. | |||
Also mind that the `this` context inside teh callback is set to the `supertest.Test` instance, and not the mocha test or any other context you're running in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
teh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a typo, inside teh callback
should be inside the callback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG. you're right. fixing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well... till the next cleanup ... I guess... 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¯_(ツ)_/¯ it happens. Thanks for fixing it!
@osher Can you please resolve conflicts ? 🙏 |
No description provided.