-
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
Added prefix option for agents #465
base: master
Are you sure you want to change the base?
Conversation
I think this should be closed in favor of #453 |
These two PRs provide different features |
@Thann yes you are right. |
@@ -815,6 +815,17 @@ describe('request.agent(app)', function() { | |||
}); | |||
}); | |||
|
|||
describe('request.agent(app, {prefix})', function() { | |||
it('should apply prefix', function(done) { |
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.
could you provide a successful test (e.g. with 200 status code) as well?
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.
Oh yeah, I can't believe I didn't do that already!
Pull Request Test Coverage Report for Build 407
💛 - Coveralls |
1 similar comment
Pull Request Test Coverage Report for Build 407
💛 - Coveralls |
This prevents users from having to repeat themselves in tests, by setting a common prefix for all routes.