Closed vitorbal closed 7 years ago
I'd probably call this a fix, since it's fixing a problem.
Thanks for the feedback! I renamed the function per your suggestion and changed the commit message to a fix.
Lgtm
Anyone know how this will play with a .gitattributes
(in repository containing code to be transformed) which specifies a line break style that doesn't match the OS default?
It won't matter because the normalization is done before the comparison.
What issue does this pull request address? Tests were failing in windows because jscodeshift transforms all line breaks of the input file into the OS-specific line break format. This caused the tests to compare the transform output (CRLF format) against the "expected result" fixture (LF format), which would always fail.
What changes did you make? (Give an overview) I made it so the tests now ensure all output being compared is using the same line break format, so the problem never happens again.
Is there anything you'd like reviewers to focus on?
Chore
or aFix
? I went with Chore as it's not a user-facing change.