-
Notifications
You must be signed in to change notification settings - Fork 735
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
Merge dev into master #731
Conversation
* Add newline to output of echo * Add test
* Split on newlines only * Only split lines if need be * Clarify code by making use of Array.prototype.reduce
* Add newline to output of echo (#557) * Add newline to output of echo * Add test * Throw an error if the options string does not start with '-' (#615) * Throw an error if the options string does not start with '-' * Add test * Change message grammar * Add -n option to echo * Fix null argument issue * Add -n tests * Add documentation * Add -en escaped character test * Add function to parse options for echo * Use parseOptions to parse echo options * Simplify control flow * parseOptions throws now * Allow null to be echoed * Prevent echo stderr on unrecognized option * Add test to check stderr of returned value * Use consistent variable name * Change test message, leave TODO about console output
* Add stdout/stderr test mocks * Mock stdout/stderr during echo tests * Fix lint issues * Use 'use strict' * Re-implement mocks as a prototype * Implement mocks as a single-instance * Remove redundant test * Create mocked stdout/stderr.write methods once
Here's the list of PRs that found their way onto dev branch. We'll want to make sure all of these are reflected on this new dev branch. |
* Deprecate common.getUserHome, advise using os.homedir instead * Remove common.getUserHome
Codecov Report
@@ Coverage Diff @@
## master #731 +/- ##
==========================================
+ Coverage 94.81% 96.65% +1.84%
==========================================
Files 33 33
Lines 1254 1227 -27
==========================================
- Hits 1189 1186 -3
+ Misses 65 41 -24
Continue to review full report at Codecov.
|
Expanded list:
|
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.
The coverage drops are reasonable as long as we work to get those lines covered in future PRs. I just released v0.7.8 (last main patch to v0.7.x), so I'm going to go ahead and land this.
@freitagbr thanks for your hard work!
Like #650 but with the merge conflicts resolved.