-
-
Notifications
You must be signed in to change notification settings - Fork 685
MockAgent.prototype.get support ignoreTrailingSlash option #4344
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
MockAgent.prototype.get support ignoreTrailingSlash option #4344
Conversation
Ethan-Arrowood
left a comment
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.
LGTM with some minor nits about seemingly unrelated formatting and test changes.
test/jest/mock-agent.test.js
Outdated
| /* global describe, it, afterEach, expect */ | ||
|
|
||
| describe('MockAgent', () => { | ||
| describe('smoking test in jest', () => { |
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.
I don't think this should be renamed
lib/mock/mock-agent.js
Outdated
| const { | ||
| matchValue, | ||
| normalizeSearchParams, | ||
| buildAndValidateMockOptions | ||
| } = require('./mock-utils') |
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 looks to be some formatting changes included in here. Is this actually from the formatter in the repo or something else?
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 might be my editor. My neovim config includes auto-formatting with prettier and eslint.
metcoder95
left a comment
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.
lgtm with Ethan comments
|
@Ethan-Arrowood @metcoder95 All done. |
This relates to...
fix #4342
Rationale
Changes
MockAgent.prototype.get now respect the
ignoreTrailingSlashoption.Features
Bug Fixes
Breaking Changes and Deprecations
Status