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

test: add TTY + assert test #26024

Closed
wants to merge 1 commit into from
Closed

Conversation

Trott
Copy link
Member

@Trott Trott commented Feb 10, 2019

This test adds coverage for a ternary in assertion_error.js that checks
if stderr is a TTY.

The line in question is

const maxLength = process.stderr.isTTY ? process.stderr.columns : 80;
.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@Trott Trott requested a review from BridgeAR February 10, 2019 05:00
@nodejs-github-bot nodejs-github-bot added test Issues and PRs related to the tests. tty Issues and PRs related to the tty subsystem. labels Feb 10, 2019
@Trott Trott added the assert Issues and PRs related to the assert subsystem. label Feb 10, 2019
@Trott
Copy link
Member Author

Trott commented Feb 10, 2019

@Trott
Copy link
Member Author

Trott commented Feb 10, 2019

@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 10, 2019
This test adds coverage for a ternary in assertion_error.js that checks
if stderr is a TTY.
@Trott
Copy link
Member Author

Trott commented Feb 10, 2019

Improved/clarified the test. (@cjihrig Probably worth re-reviewing.)

CI:

@Trott
Copy link
Member Author

Trott commented Feb 10, 2019

@cjihrig
Copy link
Contributor

cjihrig commented Feb 11, 2019

Still LGTM

@antsmartian
Copy link
Contributor

antsmartian commented Feb 11, 2019

@Trott
Copy link
Member Author

Trott commented Feb 12, 2019

Landed in 40a8a73

@Trott Trott closed this Feb 12, 2019
Trott added a commit to Trott/io.js that referenced this pull request Feb 12, 2019
This test adds coverage for a ternary in assertion_error.js that checks
if stderr is a TTY.

PR-URL: nodejs#26024
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
addaleax pushed a commit that referenced this pull request Feb 13, 2019
This test adds coverage for a ternary in assertion_error.js that checks
if stderr is a TTY.

PR-URL: #26024
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
@targos targos mentioned this pull request Feb 14, 2019
@Trott Trott deleted the cover-tty-assert branch January 13, 2022 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert Issues and PRs related to the assert subsystem. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. test Issues and PRs related to the tests. tty Issues and PRs related to the tty subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants