test: replace string concatenation in this file with template literals#14270
Closed
rockcoder23 wants to merge 1 commit intonodejs:masterfrom
rockcoder23:mynode
Closed
test: replace string concatenation in this file with template literals#14270rockcoder23 wants to merge 1 commit intonodejs:masterfrom rockcoder23:mynode
rockcoder23 wants to merge 1 commit intonodejs:masterfrom
rockcoder23:mynode
Conversation
gibfahn
approved these changes
Jul 16, 2017
evanlucas
approved these changes
Jul 16, 2017
Contributor
|
Thanks for contributing! |
cjihrig
approved these changes
Jul 16, 2017
tniessen
approved these changes
Jul 16, 2017
refack
reviewed
Jul 16, 2017
| const content = require(common.fixturesDir + | ||
| '/json-with-directory-name-module/module-stub/one-trailing-slash/two/three.js'); | ||
| const filePath = '/json-with-directory-name-module/module-stub/one-trailing-slash/two/three.js'; | ||
| const content = require(`${common.fixturesDir}${filePath}`); |
Contributor
There was a problem hiding this comment.
This is Ok.
But it would be much better to use path.join instead, see #14272 (comment)
You could even do it with multiple parts
const filePath = path.join(
common.fixturesDir,
'json-with-directory-name-module',
'module-stub',
'one-trailing-slash',
'two',
'three.js'
);
Member
|
Something odd happened with CI so we'll have to re-run it again when the CI server is a little less overwhelmed. |
Member
Trott
pushed a commit
to Trott/io.js
that referenced
this pull request
Jul 26, 2017
PR-URL: nodejs#14270 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Member
|
Landed in cf25324 Thanks for the contribution! 🎉 |
addaleax
pushed a commit
that referenced
this pull request
Jul 27, 2017
PR-URL: #14270 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Merged
MylesBorins
pushed a commit
that referenced
this pull request
Aug 16, 2017
PR-URL: #14270 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Merged
MylesBorins
pushed a commit
that referenced
this pull request
Aug 16, 2017
PR-URL: #14270 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
MylesBorins
pushed a commit
that referenced
this pull request
Sep 3, 2017
PR-URL: #14270 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
MylesBorins
pushed a commit
that referenced
this pull request
Sep 5, 2017
PR-URL: #14270 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This was referenced Sep 5, 2017
This was referenced Sep 6, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test, require