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: remove util from common #3324

Closed
wants to merge 1 commit into from
Closed

test: remove util from common #3324

wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Oct 12, 2015

util is loaded just for one use of util.format(). Replace it with a
string template. While we're at it, delete nearby lengthy comment
justifying use of fs.readFileSync().

util is loaded just for one use of util.format(). Replace it with a
string template. While we're at it, delete nearby lengthy comment
justifying use of fs.readFileSync().
@Trott
Copy link
Member Author

Trott commented Oct 12, 2015

CI won't tell us much because the only tests that use common.getServiceName() are in test/internet which aren't run in CI, but, uh, here's CI: https://ci.nodejs.org/job/node-test-pull-request/482/

@mscdex mscdex added the test Issues and PRs related to the tests. label Oct 12, 2015
@targos
Copy link
Member

targos commented Oct 12, 2015

LGTM

2 similar comments
@jbergstroem
Copy link
Member

LGTM

@evanlucas
Copy link
Contributor

LGTM

@Trott
Copy link
Member Author

Trott commented Oct 13, 2015

Landed in 6f14b3a

@Trott Trott closed this Oct 13, 2015
Trott added a commit that referenced this pull request Oct 13, 2015
util is loaded just for one use of util.format(). Replace it with a
string template. While we're at it, delete nearby lengthy comment
justifying use of fs.readFileSync().

PR-URL: #3324
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed By: Evan Lucas <evanlucas@me.com>
jasnell pushed a commit that referenced this pull request Oct 14, 2015
Now that we have backticks we no longer need to use util.format
to template strings!

This commit was inspired by #3324, and it replaces instances of
util.format with backtick strings in a number of tests

Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #3359
@MylesBorins
Copy link
Contributor

should this be backported to lts?
@jasnell

@jasnell
Copy link
Member

jasnell commented Oct 24, 2015

Can but not critical

jasnell pushed a commit that referenced this pull request Oct 26, 2015
Now that we have backticks we no longer need to use util.format
to template strings!

This commit was inspired by #3324, and it replaces instances of
util.format with backtick strings in a number of tests

Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #3359
Trott added a commit that referenced this pull request Oct 28, 2015
util is loaded just for one use of util.format(). Replace it with a
string template. While we're at it, delete nearby lengthy comment
justifying use of fs.readFileSync().

PR-URL: #3324
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed By: Evan Lucas <evanlucas@me.com>
@jasnell
Copy link
Member

jasnell commented Oct 28, 2015

Landed in v4.x-staging in d4fced7

jasnell pushed a commit that referenced this pull request Oct 29, 2015
Now that we have backticks we no longer need to use util.format
to template strings!

This commit was inspired by #3324, and it replaces instances of
util.format with backtick strings in a number of tests

Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #3359
Trott added a commit that referenced this pull request Oct 29, 2015
util is loaded just for one use of util.format(). Replace it with a
string template. While we're at it, delete nearby lengthy comment
justifying use of fs.readFileSync().

PR-URL: #3324
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed By: Evan Lucas <evanlucas@me.com>
@Trott Trott deleted the rm-util branch January 13, 2022 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants