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

Fix lines test so line endings don't get in the way on windows #460

Merged
merged 1 commit into from
Feb 11, 2018

Conversation

Phoenixmatrix
Copy link
Contributor

Fixes #459

Instead of using arguments.callee to create a fixture, hardcodes one that properly uses the operating system's eol (which is Recast's behavior, and rightly so).

I'm not 100% sure exactly what the original tests were looking for in the current function to test, but I tried to make fixtures that had similar properties.

@benjamn benjamn merged commit 6911fc1 into benjamn:master Feb 11, 2018
benjamn added a commit that referenced this pull request Feb 11, 2018
Instead of using arguments.callee (which is not available in strict mode),
this implementation relies on naming the anonymous test functions whose
code we want to use in the corresponding test.

The check function has been improved to join Lines objects using the
proper end-of-line terminator, as an alternative to #460.
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.

Unit tests fail in Windows
2 participants