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-console: streamline arrow fn and refine inspect regex #11039

Closed
wants to merge 1 commit into from
Closed

test-console: streamline arrow fn and refine inspect regex #11039

wants to merge 1 commit into from

Conversation

jonniedarko
Copy link
Contributor

removed unnecessary curly braces and return statement from the inspect arrow function

updated assert.throws regex to look for an exact match at the start of the string

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

removed unneccessary curly braces and return statement from inspect arrow function

updated `assert.throws` regex to look for exact match at start of string
@nodejs-github-bot nodejs-github-bot added test Issues and PRs related to the tests. lts-watch-v6.x labels Jan 27, 2017
@Trott
Copy link
Member

Trott commented Jan 27, 2017

@mscdex mscdex added the console Issues and PRs related to the console subsystem. label Jan 27, 2017
@evanlucas
Copy link
Contributor

I personally find the removal of the curly braces more difficult to read, so I'm -1 on that part, but +1 on the other change.

@Trott
Copy link
Member

Trott commented Jan 28, 2017

I personally find the removal of the curly braces more difficult to read, so I'm -1 on that part, but +1 on the other change.

The way it is in this PR (no braces around an arrow function body if they are not required) is definitely the more common approach in our code base by a large margin: 474 vs 22. So I'm +1 on the change here (and making it 475 vs 21) in the hopes of one day getting us to a consistent style.

(For the record, I don't have a strong personal preference for either style. I just want to stop seeing comments in both directions on pull requests. I want us to pick one, enforce it in the linter, and be done with it. :-D )

(EDIT: I do have a mild preference for explicit braces, but a much stronger preference for consistency.)

@jonniedarko
Copy link
Contributor Author

jonniedarko commented Jan 30, 2017

I am not sure why the test/arm CI is failing. when I follow the details link it says successful. Is there something I am missing

@lpinca
Copy link
Member

lpinca commented Jan 30, 2017

@jonniedarko don't worry about that, CI is 100% green.

@jonniedarko
Copy link
Contributor Author

👍

jasnell pushed a commit that referenced this pull request Jan 30, 2017
removed unneccessary curly braces and return statement from
inspect arrow function
updated `assert.throws` regex to look for exact match at start
of string

PR-URL: #11039
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

jasnell commented Jan 30, 2017

Landed in ca3d131

@jasnell jasnell closed this Jan 30, 2017
@lpinca
Copy link
Member

lpinca commented Jan 30, 2017

@jasnell landed with wrong subsystem in commit title? Maybe there is still time to fix it.

@thefourtheye
Copy link
Contributor

thefourtheye commented Jan 30, 2017

@lpinca Nah, 10 min window has passed :(

Edit: Just realized you commented well within the time-limit. Sorry :D

@jonniedarko jonniedarko deleted the test-console-cleanup branch January 30, 2017 19:50
@jonniedarko
Copy link
Contributor Author

@jasnell so I know for future, should it of been test rather than test-console?

@thefourtheye
Copy link
Contributor

@jonniedarko You are correct!

evanlucas pushed a commit that referenced this pull request Jan 31, 2017
removed unneccessary curly braces and return statement from
inspect arrow function
updated `assert.throws` regex to look for exact match at start
of string

PR-URL: #11039
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@italoacasas italoacasas mentioned this pull request Jan 31, 2017
jasnell pushed a commit that referenced this pull request Mar 7, 2017
removed unneccessary curly braces and return statement from
inspect arrow function
updated `assert.throws` regex to look for exact match at start
of string

PR-URL: #11039
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 9, 2017
removed unneccessary curly braces and return statement from
inspect arrow function
updated `assert.throws` regex to look for exact match at start
of string

PR-URL: #11039
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
console Issues and PRs related to the console subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants