-
Notifications
You must be signed in to change notification settings - Fork 229
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 error messages #352
Fix error messages #352
Conversation
Side note: Edit: #353 |
Test failure is unrelated (it's the travis+npm timeout issue). |
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.
Amazing work! Would you mind adding some sort of unit test under test/ours? So we can verify those messages are the same? I fear they can get out of date real quick, and the Node.js unit tests do not verify them.
cc @BridgeAR
OK. Should I use tap, tape or assert? The test suite is a mixture of these. |
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.
LGTM. Good work and thanks a lot for this!
@mcollina thinking about the changes: as long as they initially are aligned it should be fine. Testing these could only be done properly in Node core itself and at least adding tests for |
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.
LGTM
I already wrote tests, before I read this. So let me know if I should revert the commit. IMO it can't hurt to have tests here, because the code is not 100% equal to core, we have ponyfills for |
@vweevers all stream related Node core tests run against this module as well and that is how the tests should be tested. Having these tests here mean both sides could still diverge without noticing it. They probably do not hurt either tough. To me it's your call if you keep them or remove them, even tough I would remove them. |
I see what you mean. @mcollina your call :) |
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.
Still LGTM
Addresses #344 (comment) and #344 (comment).