-
Notifications
You must be signed in to change notification settings - Fork 922
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
feat(shared): support relative links in normalizeRoutePath #1544
Conversation
Pull Request Test Coverage Report for Build 9041425565Details
💛 - Coveralls |
[['.md'], '.html'], | ||
[['foo/.md'], 'foo/.html'], | ||
[['/.md'], '/.html'], | ||
[['/foo/.md'], '/foo/.html'], |
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.
Still need cases with current for the last 5 lines
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 actually don't think this is needed, These are corner cases which we are not expecting users to actually set them in production. I don't think those can be valid links
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.
They are unexpected, but still should be covered by our unit tests
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.
For example, if a method is going to throw an error with unexpected input, we usually test it with expect().toThrow()
. For this case, we don't throw errors, but we still need to be aware of those unexpected input.
test added |
No description provided.