-
Notifications
You must be signed in to change notification settings - Fork 636
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
assertSnapshot fails to match carriage return #4226
Comments
I'm taking a look at this one |
The culprit seems to be here. When |
@javihernant Interesting finding! Can you create an issue in denoland/deno with a minimal repro example? |
hmm looks like Deno ignoring |
Sounds like |
Describe the bug
If you pass the CR character
\r
toassertSnapshot
, it saves the snapshot fine but then immediately fails to match the snapshot.I ran into this by trying to snapshot the output of
stringify(...)
fromhttps://deno.land/[email protected]/csv/mod.ts
which apparently output CRLFs (\r\n
).Steps to Reproduce
crlf.test.ts
) with the contentsdeno test --allow-read --allow-write cr.test.ts -- --update
which returns__snapshots__/cr.test.ts.snap
withdeno test --allow-read cr.test.ts
which returns:Expected behavior
The test should succeed after the snapshot has been updated.
Environment
The text was updated successfully, but these errors were encountered: