-
Notifications
You must be signed in to change notification settings - Fork 30k
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: replace common.fixturesDir with fixtures. #15802
Conversation
const fs = require('fs'); | ||
const path = require('path'); | ||
const stream = require('stream'); | ||
const firstEncoding = 'base64'; | ||
const secondEncoding = 'latin1'; | ||
|
||
const examplePath = path.join(common.fixturesDir, 'x.txt'); | ||
const examplePath = path.join(fixtures.fixturesDir, 'x.txt'); |
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.
This could alternatively be fixtures.path('x.txt')
.
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.
Ah! Great. That seems better. I'll tweak that shortly.
Replaces the use of `common.fixturesDir` with the generic `fixtures` mechanism.
52fcf84
to
65aabc5
Compare
@richardlau I updated to use |
Replaces the use of `common.fixturesDir` with the generic `fixtures` mechanism. PR-URL: nodejs#15802 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Landed in eb08e3e. |
Replaces the use of `common.fixturesDir` with the generic `fixtures` mechanism. PR-URL: #15802 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Replaces the use of `common.fixturesDir` with the generic `fixtures` mechanism. PR-URL: nodejs/node#15802 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Replaces the use of `common.fixturesDir` with the generic `fixtures` mechanism. PR-URL: #15802 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Replaces the use of `common.fixturesDir` with the generic `fixtures` mechanism. PR-URL: #15802 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Replaces the use of `common.fixturesDir` with the generic `fixtures` mechanism. PR-URL: #15802 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Replaces the use of
common.fixturesDir
with the genericfixtures
mechanism.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)