Skip to content
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

Escape backticks in multi-line strings with the default theme #70

Merged
merged 3 commits into from Mar 13, 2021

Conversation

ninevra
Copy link
Contributor

@ninevra ninevra commented Mar 12, 2021

Fixes #36. This turned out to be a one-character typo in the default theme. The existing tests used a custom theme, preventing them from catching the bug.

This PR fixes the typo and adds test coverage for quote escaping with the default theme.

Shipping this will be a little interesting; it'll affect probably a lot of AVA snapshot reports out in the wild, including concordance's own snapshots, including the snapshots for this PR's own tests. It shouldn't affect the .snap files, just the reports, so I think it's safe to ship as a minor or patch version. Might want to follow up by updating concordance's snapshots though.


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


Don't use snapshots for these tests, because the bug under test affects 
AVA's snapshots. Releasing the fix would change the fix's snapshots.
Actually use snapshots anyway. The bug only affects the reports, and it 
would already affect the existing quote-escaping tests.
@novemberborn
Copy link
Member

Nice find!

it'll affect probably a lot of AVA snapshot reports out in the wild

Luckily only when they're updated, and hopefully it'll be clear enough in the diff that a bug was fixed.

@novemberborn novemberborn merged commit 50289f5 into concordancejs:main Mar 13, 2021
@novemberborn
Copy link
Member

Might want to follow up by updating concordance's snapshots though.

b30e7c8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Escape backticks in multi-line strings
2 participants