-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
Coverage #540
Coverage #540
Conversation
The coverage percent decrease is apparently due to my having eliminated the need for two previously covered lines (while having increased coverage elsewhere only for else branches). So this is actually an improvement in coverage with no true coverage regression. |
…anch with non-`br` void close tag in non-XML mode
…al chaining operator (check for existence already made upon entering block)
…ce by calling `_updatePosition`, it will never be `null`). Cast endIndex as number to avoid TS believing it could be null.
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.
Some great changes. I'd love to see a test case actually check its outputs, but then we should be good to go here!
Thank you! Apologies I couldn't carry it through myself--great if it may help however slightly to your great project! :-) |
Some improvements for (else branch) coverage, bringing two files up to full 100% coverage. Also fixes a linting warning.
onclosetag
else branch with non-br
void close tag in non-XML modeopenImpliesClose
optional chaining operator (check for existence already made upon entering block)endIndex
(since by calling_updatePosition
, it will never benull
). Cast endIndex as number to avoid TS believing it could be null.