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 common/fixtures module in test/es-module/test-esm-encoded-path-native.js #15989

Closed
wants to merge 2 commits into from

Conversation

hschwalm
Copy link
Contributor

@hschwalm hschwalm commented Oct 6, 2017

Replaced the common.fixturesDir with the usage of common/fixtures module

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 6, 2017
@mscdex mscdex added the esm Issues and PRs related to the ECMAScript Modules implementation. 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 6, 2017
@@ -1,5 +1,5 @@
'use strict';
const common = require('../common');
const common = require('../common/fixtures');
Copy link
Member

Choose a reason for hiding this comment

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

Did this test ever work? It seems like it did not? common itself should still be required as it is going to load a couple of other things as well. The return value here should also be renamed to fixtures, since it is not common that is returned here anymore.

@BridgeAR
Copy link
Member

@hschwalm do you still want to pursue this?

@joyeecheung
Copy link
Member

const assert = require('assert');
const { spawn } = require('child_process');

const native = `${common.fixturesDir}/es-module-url/native.mjs`;
const native = `${fixtures.fixturesDir}/es-module-url/native.mjs`;
Copy link
Member

Choose a reason for hiding this comment

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

This can be simply:

const native = fixtures.path('es-module-url', 'native.mjs');

@joyeecheung
Copy link
Member

Landed in b932854 with #15989 (review) fixed. Thanks for the contribution!

joyeecheung pushed a commit that referenced this pull request Oct 16, 2017
PR-URL: #15989
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
targos pushed a commit that referenced this pull request Oct 18, 2017
PR-URL: #15989
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 18, 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. esm Issues and PRs related to the ECMAScript Modules implementation. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants