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: replace var with const in test-require-dot #9916

Closed
wants to merge 2 commits into from

Conversation

amarzavery
Copy link
Contributor

@amarzavery amarzavery commented Dec 1, 2016

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

test: replace var with const in test-require-dot

@mscdex mscdex added the module Issues and PRs related to the module subsystem. label Dec 1, 2016
@amarzavery
Copy link
Contributor Author

closed #9896 as the commit message was not following the guidelines and git commit --amend resulted into 3 commits.

var module = require('module');
const common = require('../common');
const assert = require('assert');
const m = require('module');
Copy link
Contributor

Choose a reason for hiding this comment

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

why not keeping module as it is?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

keeping the module as it is causes an error, hence renaming it something else:

/Users/amarz/summit16/node/test/parallel/test-require-dot.js:4
const module = require('module');
                               ^
SyntaxError: Identifier 'module' has already been declared

@imyller imyller added code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. test Issues and PRs related to the tests. labels Dec 1, 2016
Copy link
Member

@gibfahn gibfahn left a comment

Choose a reason for hiding this comment

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

LGTM if CI is happy.

FYI, the extra commits possibly came from doing a git pull.


assert.equal(c.value, 42, 'require(".") should honor NODE_PATH');
assert.strictEqual(c.value, 42, 'require(".") should honor NODE_PATH');
Copy link
Member

Choose a reason for hiding this comment

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

Nit: can you please add a final new line.

@not-an-aardvark
Copy link
Contributor

Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

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

LGTM once the lint errors have been fixed.

@Trott
Copy link
Member

Trott commented Dec 12, 2016

Pushed a commit that added a new line char to satisfy the linter.

CI: https://ci.nodejs.org/job/node-test-pull-request/5362/

@italoacasas
Copy link
Contributor

Landed fa4f158

Thanks for the contribution.

italoacasas pushed a commit that referenced this pull request Dec 12, 2016
PR-URL: #9916
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Fishrock123 pushed a commit that referenced this pull request Dec 13, 2016
PR-URL: #9916
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
@italoacasas italoacasas mentioned this pull request Dec 15, 2016
targos pushed a commit that referenced this pull request Dec 26, 2016
PR-URL: #9916
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
targos pushed a commit that referenced this pull request Dec 26, 2016
PR-URL: #9916
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
@MylesBorins MylesBorins mentioned this pull request Dec 27, 2016
@MylesBorins MylesBorins mentioned this pull request Dec 27, 2016
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.