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

Replaced common.fixturesDir with usage of common.fixtures module #15840

Closed
wants to merge 1 commit into from
Closed

Replaced common.fixturesDir with usage of common.fixtures module #15840

wants to merge 1 commit into from

Conversation

tkarsten
Copy link
Contributor

@tkarsten tkarsten commented Oct 6, 2017

First-time contribution during Node.js Interactive:

In test/parallel/test-global.js, replace common.fixturesDir with usage of the common.fixtures module (see https://github.com/nodejs/node/tree/master/test/common#fixtures-module).

(First-time contribution during Node.js Interactive)
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 6, 2017
@@ -40,7 +41,7 @@ assert.strictEqual(baseBar, // eslint-disable-line no-undef
'bar',
'global.x -> x in base level not working');

const mod = require(path.join(common.fixturesDir, 'global', 'plain'));
const mod = require(path.join(fixtures.fixturesDir, 'global', 'plain'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be using method fixtures.path instead of path.join.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pawelgolda is correct, the correct change here would be:

const mod = require(fixtures.path('global', 'plain'));

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to fix this while landing.

@mscdex mscdex added the module Issues and PRs related to the module subsystem. label Oct 6, 2017
@Trott Trott added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Oct 7, 2017
@jasnell
Copy link
Member

jasnell commented Oct 9, 2017

Thank you so much for the contribution and for participating in the code-and-learn! There are a couple of things that need to be fixed here but it's very close!

@gireeshpunathil
Copy link
Member

soft ping @tkarsten

@@ -40,7 +41,7 @@ assert.strictEqual(baseBar, // eslint-disable-line no-undef
'bar',
'global.x -> x in base level not working');

const mod = require(path.join(common.fixturesDir, 'global', 'plain'));
const mod = require(path.join(fixtures.fixturesDir, 'global', 'plain'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to fix this while landing.

@BridgeAR
Copy link
Member

The commit message does not follow the commit guidelines that are linked in each new PR description (it was actually removed from the PR description).

@BridgeAR BridgeAR self-assigned this Oct 18, 2017
BridgeAR pushed a commit that referenced this pull request Oct 19, 2017
@BridgeAR
Copy link
Member

Landed in 8597a18

Thanks for the PR, and congratulations on becoming a Node.js Contributor 🎉 !

@BridgeAR BridgeAR closed this Oct 19, 2017
MylesBorins pushed a commit that referenced this pull request Oct 23, 2017
addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 26, 2017
addaleax pushed a commit to ayojs/ayo that referenced this pull request Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. module Issues and PRs related to the module subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants